mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
add loading
This commit is contained in:
1 parent
e319afd422
commit
7cdf9f69e6
14 files changed
+329
-6
No files matched your search
@@ -13,6 +13,8 @@ import Subtitle from './subtitle';
|
||||
import Events from './events';
|
||||
import Hotkey from './hotkey';
|
||||
import Layers from './layers';
|
||||
import Loading from './loading';
|
||||
import Notice from './notice';
|
||||
|
||||
let id = 0;
|
||||
export const instances = [];
|
||||
@@ -41,6 +43,7 @@ class Artplayer extends Emitter {
|
||||
mimeCodec: '',
|
||||
layers: [],
|
||||
contextmenu: [],
|
||||
loading: '',
|
||||
lang: navigator.language.toLowerCase()
|
||||
};
|
||||
}
|
||||
@@ -79,6 +82,8 @@ class Artplayer extends Emitter {
|
||||
this.subtitle = new Subtitle(this);
|
||||
this.info = new Info(this);
|
||||
this.hotkey = new Hotkey(this);
|
||||
this.loading = new Loading(this);
|
||||
this.notice = new Notice(this);
|
||||
|
||||
this.id = id++;
|
||||
instances.push(this);
|
||||
|
||||
Reference in new issue
Block a user