xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.0-next.6 to 3.0.0-next.7
import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; | ||
import _createClass from '@babel/runtime/helpers/createClass'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
@@ -4,0 +5,0 @@ var Buffer = /*#__PURE__*/function () { |
@@ -0,1 +1,2 @@ | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.reflect.construct.js'; | ||
@@ -2,0 +3,0 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; |
@@ -6,3 +6,3 @@ export { MSE, MSEError, MSEErrorType } from './mse.js'; | ||
export { EVENT } from './event.js'; | ||
export { concatUint8Array, getVideoPlaybackQuality, isMediaPlaying, sleep, softDecodeProbe } from './streaming-helper.js'; | ||
export { concatUint8Array, getVideoPlaybackQuality, isMediaPlaying, sleep } from './streaming-helper.js'; | ||
export { Logger } from './logger.js'; | ||
@@ -9,0 +9,0 @@ export { LoaderType, ResponseType } from './net/types.js'; |
import 'core-js/modules/es.reflect.construct.js'; | ||
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; | ||
import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
import _createClass from '@babel/runtime/helpers/createClass'; | ||
import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; | ||
@@ -16,2 +16,3 @@ import _inherits from '@babel/runtime/helpers/inherits'; | ||
import 'core-js/modules/web.url.js'; | ||
import 'core-js/modules/web.url-search-params.js'; | ||
import 'core-js/modules/web.dom-collections.for-each.js'; | ||
@@ -55,3 +56,3 @@ import 'core-js/modules/es.object.keys.js'; | ||
return MSEError; | ||
return _createClass(MSEError); | ||
}( /*#__PURE__*/_wrapNativeSuper(Error)); | ||
@@ -58,0 +59,0 @@ var MSE = /*#__PURE__*/function () { |
import 'core-js/modules/es.object.keys.js'; | ||
import 'core-js/modules/es.symbol.js'; | ||
import 'core-js/modules/es.array.filter.js'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.object.get-own-property-descriptor.js'; | ||
@@ -10,5 +11,5 @@ import 'core-js/modules/web.dom-collections.for-each.js'; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function getConfig(cfg) { | ||
@@ -15,0 +16,0 @@ return _objectSpread({ |
@@ -0,2 +1,4 @@ | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.reflect.construct.js'; | ||
import _createClass from '@babel/runtime/helpers/createClass'; | ||
import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; | ||
@@ -42,5 +44,5 @@ import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized'; | ||
return NetError; | ||
return _createClass(NetError); | ||
}( /*#__PURE__*/_wrapNativeSuper(Error)); | ||
export { NetError }; |
@@ -5,2 +5,3 @@ import 'core-js/modules/es.regexp.exec.js'; | ||
import 'core-js/modules/es.array.filter.js'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.array.map.js'; | ||
@@ -7,0 +8,0 @@ import 'core-js/modules/es.object.keys.js'; |
@@ -5,2 +5,3 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; | ||
import 'core-js/modules/es.array.slice.js'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
@@ -7,0 +8,0 @@ var BandwidthService = /*#__PURE__*/function () { |
@@ -16,3 +16,2 @@ export function isMediaPlaying(media: any): boolean; | ||
export function concatUint8Array(...arr: Array<Uint8Array>): Uint8Array; | ||
export function softDecodeProbe(): any; | ||
export function sleep(t?: number): Promise<any>; |
import 'core-js/modules/es.array.filter.js'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.array.iterator.js'; | ||
import 'core-js/modules/es.object.to-string.js'; | ||
import 'core-js/modules/es.typed-array.uint8-array.js'; | ||
@@ -74,40 +74,2 @@ import 'core-js/modules/es.typed-array.copy-within.js'; | ||
} | ||
function softDecodeProbe() { | ||
var webAudioEnable = false; | ||
var webglEnable = false; | ||
try { | ||
var AudioContext = window.AudioContext || window.webkitAudioContext; | ||
var ctx = new AudioContext(); | ||
ctx.close(); | ||
ctx = null; | ||
webAudioEnable = true; | ||
} catch (e) {} | ||
try { | ||
var cvs = document.createElement('canvas'); | ||
var validContextNames = ['webgl', 'experimental-webgl', 'moz-webgl', 'webkit-3d']; | ||
for (var i = 0; i < validContextNames.length; i++) { | ||
var glCtx = cvs.getContext(validContextNames[i]); | ||
if (glCtx) { | ||
glCtx = null; | ||
cvs = null; | ||
webglEnable = true; | ||
break; | ||
} | ||
} | ||
} catch (e) {} | ||
var WebComponentSupported = 'customElements' in window && window.customElements.define; | ||
var isComponentSupport; | ||
if (WebComponentSupported) { | ||
var Video = window.customElements.get('live-video'); | ||
isComponentSupport = Video && Video.isSupported(); | ||
} | ||
return webAudioEnable && webglEnable && isComponentSupport; | ||
} | ||
function sleep() { | ||
@@ -120,2 +82,2 @@ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; | ||
export { concatUint8Array, getVideoPlaybackQuality, isMediaPlaying, sleep, softDecodeProbe }; | ||
export { concatUint8Array, getVideoPlaybackQuality, isMediaPlaying, sleep }; |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.0-next.6", | ||
"version": "3.0.0-next.7", | ||
"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
816032
2946