This commit is contained in:
Harvey Zack committed 2018-10-21 15:46:38 +08:00
1 parent 54eb34d291
commit 813335e310
4 files changed
+7 -140

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ import Emitter from 'tiny-emitter';
import Template from './template';
import I18n from './i18n';
import Player from './player';
import Mse from './mse';
import Controls from './controls';
import Contextmenu from './contextmenu';
import Danmu from './danmu';
@@ -81,6 +80,7 @@ class Artplayer extends Emitter {
const args = Array.from(arguments).slice(1);
args.unshift(this);
installedPlugins[name] = new Plugin(...args);
this.prototype.emit('use', Plugin);
}
return this;
}
@@ -102,7 +102,6 @@ class Artplayer extends Emitter {
this.notice = new Notice(this);
this.events = new Events(this);
this.player = new Player(this);
// this.mse = new Mse(this);
this.layers = new Layers(this);
this.controls = new Controls(this);
this.contextmenu = new Contextmenu(this);
+1 -3
View File
@@ -1,9 +1,7 @@
import Srt from './srt';
import Mse from './mse';
const plugins = {
export default {
Srt,
Mse
};
export default plugins;