react-jplayer
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -358,8 +358,6 @@ 'use strict'; | ||
if (nextProps.paused !== this.props.paused) { | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
@@ -366,0 +364,0 @@ } |
{ | ||
"name": "react-jplayer", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "Html5 audio and video player library for React", | ||
@@ -5,0 +5,0 @@ "author": "Martin Dawson <u1356770@gmail.com>", |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { connectWithId, toPercentage, toRelativePercentage, | ||
convertTime, canSetVolume } from 'react-jplayer-utils'; | ||
import { | ||
connectWithId, toPercentage, toRelativePercentage, | ||
convertTime, canSetVolume, | ||
} from 'react-jplayer-utils'; | ||
@@ -210,3 +212,3 @@ import urlNotSupportedError from '../../util/errorHandlers/urlNotSupportedError'; | ||
if (nextProps.mediaId !== this.props.mediaId && | ||
nextProps.src !== '') { | ||
nextProps.src !== '') { | ||
this.currentMedia.src = nextProps.src; | ||
@@ -242,8 +244,6 @@ } | ||
if (nextProps.paused !== this.props.paused) { | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
@@ -250,0 +250,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
567622
12015