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

react-player-custom

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player-custom - npm Package Compare versions

Comparing version 1.11.8 to 1.11.9

.history/package_20190517182929.json

21

lib/players/FilePlayer.js

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

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