Socket
Socket
Sign inDemoInstall

xgplayer-streaming-shared

Package Overview
Dependencies
Maintainers
8
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgplayer-streaming-shared - npm Package Compare versions

Comparing version 3.0.17-rc.3 to 3.0.17-rc.4

1

es/mse.d.ts

@@ -23,2 +23,3 @@ export type MSEErrorType = string;

static isSupported(mime?: string): boolean;
static isMMSOnly(): boolean;
static getDefaultConfig(): {

@@ -25,0 +26,0 @@ openLog: boolean;

19

es/mse.js

@@ -212,3 +212,3 @@ import { defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, createClass as _createClass, classCallCheck as _classCallCheck, wrapNativeSuper as _wrapNativeSuper, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from "./_virtual/_rollupPluginBabelHelpers.js";

var _this6 = this;
var MediaSource, ms, useMMS, onOpen;
var MediaSource2, ms, useMMS, onOpen;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -225,4 +225,4 @@ while (1)

case 3:
MediaSource = getMediaSource(this._config.preferMMS);
if (!(!media || !MediaSource)) {
MediaSource2 = getMediaSource(this._config.preferMMS);
if (!(!media || !MediaSource2)) {
_context.next = 6;

@@ -234,3 +234,3 @@ break;

this.media = media;
ms = this.mediaSource = new MediaSource();
ms = this.mediaSource = new MediaSource2();
useMMS = isMMS(ms);

@@ -648,7 +648,7 @@ this._st = nowTime();

var mime = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';
var MediaSource = getMediaSource();
if (!MediaSource)
var MediaSource2 = getMediaSource();
if (!MediaSource2)
return false;
try {
return MediaSource.isTypeSupported(mime);
return MediaSource2.isTypeSupported(mime);
} catch (error) {

@@ -660,2 +660,7 @@ this._logger.error(mime, error);

}, {
key: "isMMSOnly",
value: function isMMSOnly() {
return typeof ManagedMediaSource !== "undefined" && typeof MediaSource === "undefined";
}
}, {
key: "getDefaultConfig",

@@ -662,0 +667,0 @@ value: function getDefaultConfig() {

{
"name": "xgplayer-streaming-shared",
"version": "3.0.17-rc.3",
"version": "3.0.17-rc.4",
"main": "dist/index.min.js",

@@ -5,0 +5,0 @@ "module": "es/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