react-player-pfy
Advanced tools
Comparing version 1.15.5 to 1.15.6
@@ -196,4 +196,7 @@ "use strict"; | ||
var HLS_GLOBAL = 'Hls'; | ||
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i; | ||
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js'; | ||
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i; // var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/3.0.2/dash.all.min.js'; | ||
// var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/3.0.2/dash.all.debug.js'; | ||
var DASH_SDK_URL = require('./dash.all.debug.js'); | ||
var DASH_GLOBAL = 'dashjs'; | ||
@@ -493,3 +496,3 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/; | ||
if (this.shouldUseDASH(url)) { | ||
(0, _utils.getSDK)(DASH_SDK_URL.replace('VERSION', dashVersion), DASH_GLOBAL).then(function (dashjs) { | ||
(0, _utils.getSDK)(DASH_SDK_URL, DASH_GLOBAL).then(function (dashjs) { | ||
_this2.dash = dashjs.MediaPlayer().create(); | ||
@@ -499,13 +502,8 @@ | ||
_this2.dash.reset(); | ||
_this2.props.getDash(_this2.dash); | ||
_this2.dash = dashjs.MediaPlayer().create(); | ||
_this2.dash.initialize(_this2.player, url, _this2.props.playing); | ||
_this2.dash.setProtectionData(_this2.props.encKey); | ||
_this2.dash.on('error', _this2.props.onError); | ||
_this2.dash.on('error', _this2.props.onError); // _this2.dash.getDebug().setLogToBrowserConsole(false); | ||
_this2.dash.getDebug().setLogToBrowserConsole(false); | ||
}); | ||
@@ -512,0 +510,0 @@ } |
{ | ||
"name": "react-player-pfy", | ||
"version": "1.15.5", | ||
"version": "1.15.6", | ||
"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/ReactPlayer.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
6540093
33
22302
3