mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
创建mse
This commit is contained in:
1 parent
50d1457e7e
commit
2e0d70292b
9 files changed
+99
-19
No files matched your search
@@ -28,6 +28,8 @@ let id = 0;
|
||||
class Artplayer extends Emitter {
|
||||
constructor(option) {
|
||||
super();
|
||||
utils.errorHandle(typeof window.Promise === 'function', "Unsupported 'Promise' method");
|
||||
utils.errorHandle(typeof window.fetch === 'function', "Unsupported 'fetch' method");
|
||||
this.option = utils.mergeDeep(Artplayer.DEFAULTS, option);
|
||||
optionValidator(this.option, scheme);
|
||||
this.init();
|
||||
@@ -148,4 +150,4 @@ Object.defineProperty(Artplayer, 'instances', {
|
||||
});
|
||||
|
||||
window.Artplayer = Artplayer;
|
||||
export default Artplayer;
|
||||
export default Artplayer;
|
||||
Reference in new issue
Block a user