New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spce/react-player

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spce/react-player - npm Package Compare versions

Comparing version 2.9.6 to 2.9.8

6

lazy/Player.js

@@ -347,2 +347,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.isReady) return null;
return this.player.getPlayerElement();
}
}, {
key: "getSecondsLoaded",

@@ -349,0 +355,0 @@ value: function getSecondsLoaded() {

@@ -276,2 +276,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.player) return null;
return this.video.current;
}
}, {
key: "getSecondsLoaded",

@@ -278,0 +284,0 @@ value: function getSecondsLoaded() {

@@ -197,2 +197,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -199,0 +204,0 @@ value: function getSecondsLoaded() {

@@ -174,2 +174,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -176,0 +181,0 @@ value: function getSecondsLoaded() {

@@ -493,2 +493,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.player) return null;
return this.player;
}
}, {
key: "getSecondsLoaded",

@@ -495,0 +501,0 @@ value: function getSecondsLoaded() {

@@ -178,2 +178,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -180,0 +185,0 @@ value: function getSecondsLoaded() {

@@ -151,2 +151,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -153,0 +158,0 @@ value: function getSecondsLoaded() {

23

lazy/players/SoundCloud.js

@@ -46,4 +46,4 @@ "use strict";

var SDK_URL = 'https://w.soundcloud.com/player/api.js';
var SDK_GLOBAL = 'SC';
var SDK_URL = "https://w.soundcloud.com/player/api.js";
var SDK_GLOBAL = "SC";

@@ -154,3 +154,3 @@ var SoundCloud = /*#__PURE__*/function (_Component) {

value: function play() {
this.callPlayer('play');
this.callPlayer("play");
}

@@ -160,3 +160,3 @@ }, {

value: function pause() {
this.callPlayer('pause');
this.callPlayer("pause");
}

@@ -170,3 +170,3 @@ }, {

value: function seekTo(seconds) {
this.callPlayer('seekTo', seconds * 1000);
this.callPlayer("seekTo", seconds * 1000);
}

@@ -176,3 +176,3 @@ }, {

value: function setVolume(fraction) {
this.callPlayer('setVolume', fraction * 100);
this.callPlayer("setVolume", fraction * 100);
}

@@ -190,2 +190,7 @@ }, {

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -200,4 +205,4 @@ value: function getSecondsLoaded() {

var style = {
width: '100%',
height: '100%',
width: "100%",
height: "100%",
display: display

@@ -220,3 +225,3 @@ };

_defineProperty(SoundCloud, "displayName", 'SoundCloud');
_defineProperty(SoundCloud, "displayName", "SoundCloud");

@@ -223,0 +228,0 @@ _defineProperty(SoundCloud, "canPlay", _patterns.canPlay.soundcloud);

@@ -172,2 +172,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -174,0 +179,0 @@ value: function getSecondsLoaded() {

@@ -182,2 +182,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -184,0 +189,0 @@ value: function getSecondsLoaded() {

@@ -178,2 +178,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "render",

@@ -180,0 +185,0 @@ value: function render() {

@@ -215,2 +215,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -217,0 +222,0 @@ value: function getSecondsLoaded() {

@@ -215,2 +215,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -217,0 +222,0 @@ value: function getSecondsLoaded() {

@@ -320,2 +320,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "render",

@@ -322,0 +327,0 @@ value: function render() {

@@ -141,2 +141,10 @@ "use strict";

_defineProperty(_assertThisInitialized(_this), "getPlayerElement", function () {
if (!_this.player) {
return null;
} else {
return _this.player.getPlayerElement();
}
});
_defineProperty(_assertThisInitialized(_this), "getSecondsLoaded", function () {

@@ -143,0 +151,0 @@ if (!_this.player) return null;

@@ -347,2 +347,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.isReady) return null;
return this.player.getPlayerElement();
}
}, {
key: "getSecondsLoaded",

@@ -349,0 +355,0 @@ value: function getSecondsLoaded() {

@@ -276,2 +276,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.player) return null;
return this.video.current;
}
}, {
key: "getSecondsLoaded",

@@ -278,0 +284,0 @@ value: function getSecondsLoaded() {

@@ -197,2 +197,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -199,0 +204,0 @@ value: function getSecondsLoaded() {

@@ -174,2 +174,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -176,0 +181,0 @@ value: function getSecondsLoaded() {

@@ -493,2 +493,8 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
if (!this.player) return null;
return this.player;
}
}, {
key: "getSecondsLoaded",

@@ -495,0 +501,0 @@ value: function getSecondsLoaded() {

@@ -178,2 +178,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -180,0 +185,0 @@ value: function getSecondsLoaded() {

@@ -151,2 +151,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -153,0 +158,0 @@ value: function getSecondsLoaded() {

@@ -46,4 +46,4 @@ "use strict";

var SDK_URL = 'https://w.soundcloud.com/player/api.js';
var SDK_GLOBAL = 'SC';
var SDK_URL = "https://w.soundcloud.com/player/api.js";
var SDK_GLOBAL = "SC";

@@ -154,3 +154,3 @@ var SoundCloud = /*#__PURE__*/function (_Component) {

value: function play() {
this.callPlayer('play');
this.callPlayer("play");
}

@@ -160,3 +160,3 @@ }, {

value: function pause() {
this.callPlayer('pause');
this.callPlayer("pause");
}

@@ -170,3 +170,3 @@ }, {

value: function seekTo(seconds) {
this.callPlayer('seekTo', seconds * 1000);
this.callPlayer("seekTo", seconds * 1000);
}

@@ -176,3 +176,3 @@ }, {

value: function setVolume(fraction) {
this.callPlayer('setVolume', fraction * 100);
this.callPlayer("setVolume", fraction * 100);
}

@@ -190,2 +190,7 @@ }, {

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -200,4 +205,4 @@ value: function getSecondsLoaded() {

var style = {
width: '100%',
height: '100%',
width: "100%",
height: "100%",
display: display

@@ -220,3 +225,3 @@ };

_defineProperty(SoundCloud, "displayName", 'SoundCloud');
_defineProperty(SoundCloud, "displayName", "SoundCloud");

@@ -223,0 +228,0 @@ _defineProperty(SoundCloud, "canPlay", _patterns.canPlay.soundcloud);

@@ -172,2 +172,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -174,0 +179,0 @@ value: function getSecondsLoaded() {

@@ -182,2 +182,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -184,0 +189,0 @@ value: function getSecondsLoaded() {

@@ -178,2 +178,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "render",

@@ -180,0 +185,0 @@ value: function render() {

@@ -215,2 +215,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -217,0 +222,0 @@ value: function getSecondsLoaded() {

@@ -215,2 +215,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "getSecondsLoaded",

@@ -217,0 +222,0 @@ value: function getSecondsLoaded() {

@@ -320,2 +320,7 @@ "use strict";

}, {
key: "getPlayerElement",
value: function getPlayerElement() {
return null;
}
}, {
key: "render",

@@ -322,0 +327,0 @@ value: function render() {

@@ -141,2 +141,10 @@ "use strict";

_defineProperty(_assertThisInitialized(_this), "getPlayerElement", function () {
if (!_this.player) {
return null;
} else {
return _this.player.getPlayerElement();
}
});
_defineProperty(_assertThisInitialized(_this), "getSecondsLoaded", function () {

@@ -143,0 +151,0 @@ if (!_this.player) return null;

{
"name": "@spce/react-player",
"version": "2.9.6",
"version": "2.9.8",
"description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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