mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
update common code
This commit is contained in:
1 parent
495782f5c6
commit
11bc295663
14 files changed
+59
-44
No files matched your search
@@ -12,6 +12,7 @@ import Info from './info';
|
||||
import Subtitle from './subtitle';
|
||||
import Events from './events';
|
||||
import Hotkey from './hotkey';
|
||||
import Layers from './layers';
|
||||
|
||||
let id = 0;
|
||||
export const instances = [];
|
||||
@@ -77,6 +78,7 @@ class Artplayer extends Emitter {
|
||||
this.info = new Info(this);
|
||||
this.events = new Events(this);
|
||||
this.hotkey = new Hotkey(this);
|
||||
this.layers = new Layers(this);
|
||||
|
||||
this.id = id++;
|
||||
instances.push(this);
|
||||
|
||||
Reference in new issue
Block a user