xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.0-next.9-1 to 3.0.0-next.9-2
@@ -108,3 +108,7 @@ export type MSEErrorType = string; | ||
} | ||
declare const MediaSource: any; | ||
declare const MediaSource: { | ||
new (): MediaSource; | ||
prototype: MediaSource; | ||
isTypeSupported(type: string): boolean; | ||
}; | ||
export {}; |
@@ -31,3 +31,5 @@ import 'core-js/modules/es.reflect.construct.js'; | ||
function getMediaSource() { | ||
return isBrowser ? MediaSource : null; | ||
try { | ||
return isBrowser ? window.MediaSource : null; | ||
} catch (e) {} | ||
} | ||
@@ -34,0 +36,0 @@ |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.0-next.9-1", | ||
"version": "3.0.0-next.9-2", | ||
"main": "dist/index.min.js", | ||
@@ -5,0 +5,0 @@ "module": "es/index.js", |
Sorry, the diff of this file is too big to display
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
214709
2955