xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.17-rc.3 to 3.0.17-rc.4
@@ -23,2 +23,3 @@ export type MSEErrorType = string; | ||
static isSupported(mime?: string): boolean; | ||
static isMMSOnly(): boolean; | ||
static getDefaultConfig(): { | ||
@@ -25,0 +26,0 @@ openLog: boolean; |
@@ -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
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
361771
4706