react-player-custom
Advanced tools
Comparing version 1.11.8 to 1.11.9
@@ -24,4 +24,2 @@ 'use strict'; | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -252,23 +250,6 @@ | ||
(0, _utils.getSDK)(DASH_SDK_URL.replace('VERSION', dashVersion), DASH_GLOBAL).then(function (dashjs) { | ||
var dashConfig = _this2.props.config.file.dashConfig; | ||
console.log(dashConfig); | ||
var results = null; | ||
_this2.dash = dashjs.MediaPlayer().create(); | ||
_this2.dash.initialize(_this2.player, url, _this2.props.playing); | ||
_this2.dash.getDebug().setLogToBrowserConsole(false); | ||
_this2.dash.setXHRWithCredentialsForType("", true); | ||
Object.keys(dashConfig).map(function (x) { | ||
console.log(dashConfig[x], dashConfig[x].params, dashConfig[x].callback); | ||
if (dashConfig[x].params) { | ||
var _dash; | ||
results = (_dash = _this2.dash)[x].apply(_dash, _toConsumableArray(dashConfig[x].params)); | ||
} else { | ||
results = _this2.dash[x](); | ||
} | ||
if (dashConfig[x].callback) { | ||
dashConfig[x].callback(results); | ||
} | ||
}); | ||
_this2.dash.getDebug().setLogToBrowserConsole(true); | ||
}); | ||
@@ -275,0 +256,0 @@ } |
{ | ||
"name": "react-player-custom", | ||
"version": "1.11.8", | ||
"version": "1.11.9", | ||
"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
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
1479475
38
5161