mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
add esline
This commit is contained in:
1 parent
5db0050584
commit
70864abf44
17 files changed
+528
-31
No files matched your search
+15
-15
@@ -1,16 +1,15 @@
|
||||
import "./style/index.scss";
|
||||
import './style/index.scss';
|
||||
import Emitter from 'tiny-emitter';
|
||||
import { verification } from "./utils";
|
||||
import I18n from "./i18n";
|
||||
import Player from "./player";
|
||||
import Controls from "./controls";
|
||||
import Screenshot from "./screenshot";
|
||||
import Contextmenu from "./contextmenu";
|
||||
import Danmu from "./danmu";
|
||||
import Info from "./info";
|
||||
import Captions from "./captions";
|
||||
import Events from "./events";
|
||||
import Hotkey from "./hotkey";
|
||||
import { verification } from './utils';
|
||||
import I18n from './i18n';
|
||||
import Player from './player';
|
||||
import Controls from './controls';
|
||||
import Contextmenu from './contextmenu';
|
||||
import Danmu from './danmu';
|
||||
import Info from './info';
|
||||
import Captions from './captions';
|
||||
import Events from './events';
|
||||
import Hotkey from './hotkey';
|
||||
|
||||
let id = 0;
|
||||
export const instances = [];
|
||||
@@ -24,7 +23,7 @@ class Artplayer extends Emitter {
|
||||
}
|
||||
|
||||
static get version() {
|
||||
return "__VERSION__";
|
||||
return '__VERSION__';
|
||||
}
|
||||
|
||||
static get DEFAULTS() {
|
||||
@@ -40,7 +39,6 @@ class Artplayer extends Emitter {
|
||||
this.i18n = new I18n(this);
|
||||
this.player = new Player(this);
|
||||
this.controls = new Controls(this);
|
||||
this.screenshot = new Screenshot(this);
|
||||
this.contextmenu = new Contextmenu(this);
|
||||
this.danmu = new Danmu(this);
|
||||
this.captions = new Captions(this);
|
||||
@@ -50,11 +48,13 @@ class Artplayer extends Emitter {
|
||||
|
||||
this.id = id++;
|
||||
instances.push(this);
|
||||
|
||||
console.log(this);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.destroyEvents.forEach(event => event.destroy());
|
||||
this.refs.container.innerHTML = "";
|
||||
this.refs.container.innerHTML = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user