Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.6 to 0.0.7

1

lib/players/SoundCloud.js

@@ -109,2 +109,3 @@ 'use strict';

}
this.stop();
this.getSDK().then(function (SC) {

@@ -111,0 +112,0 @@ _this2.getSongData(url).then(function (data) {

2

lib/players/Vimeo.js

@@ -66,3 +66,3 @@ 'use strict';

var data = JSON.stringify({ method: method, value: value });
return _this.iframe.contentWindow.postMessage(data, _this.origin);
return _this.iframe.contentWindow && _this.iframe.contentWindow.postMessage(data, _this.origin);
};

@@ -69,0 +69,0 @@ }

@@ -44,3 +44,3 @@ 'use strict';

this.state = {
Player: null
Player: this.getPlayer(this.props.url)
};

@@ -61,5 +61,3 @@

this.setState({
Player: _players2['default'].find(function (Player) {
return Player.canPlay(nextProps.url);
})
Player: this.getPlayer(nextProps.url)
});

@@ -69,2 +67,9 @@ }

}, {
key: 'getPlayer',
value: function getPlayer(url) {
return _players2['default'].find(function (Player) {
return Player.canPlay(url);
});
}
}, {
key: 'render',

@@ -71,0 +76,0 @@ value: function render() {

{
"name": "react-player",
"version": "0.0.6",
"version": "0.0.7",
"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