react-player
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -70,3 +70,3 @@ 'use strict'; | ||
this.play(nextProps.url); | ||
this.onProgress({ played: 0, loaded: 0 }); | ||
this.props.onProgress({ played: 0, loaded: 0 }); | ||
} else if (!this.props.playing && nextProps.playing) { | ||
@@ -73,0 +73,0 @@ this.play(); |
@@ -72,2 +72,7 @@ 'use strict'; | ||
_createClass(SoundCloud, [{ | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate(nextProps, nextState) { | ||
return this.state.image !== nextState.image; | ||
} | ||
}, { | ||
key: 'getSDK', | ||
@@ -74,0 +79,0 @@ value: function getSDK() { |
@@ -78,2 +78,7 @@ 'use strict'; | ||
}, { | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate() { | ||
return false; | ||
} | ||
}, { | ||
key: 'play', | ||
@@ -80,0 +85,0 @@ value: function play(url) { |
@@ -58,2 +58,7 @@ 'use strict'; | ||
_createClass(YouTube, [{ | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate() { | ||
return false; | ||
} | ||
}, { | ||
key: 'getSDK', | ||
@@ -60,0 +65,0 @@ value: function getSDK() { |
{ | ||
"name": "react-player", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A react component for playing media from YouTube, SoundCloud or Vimeo", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactPlayer.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40925
813
1