add loading

This commit is contained in:
Harvey Zack committed 2018-10-15 17:36:10 +08:00
1 parent e319afd422
commit 7cdf9f69e6
14 files changed
+329 -6

No files matched your search

+5
View File
@@ -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);