Socket
Socket
Sign inDemoInstall

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

lib/players/Base.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc