diff --git a/src/controls/play.js b/src/controls/highlight.js similarity index 100% rename from src/controls/play.js rename to src/controls/highlight.js diff --git a/src/controls/playAndPause.js b/src/controls/playAndPause.js new file mode 100644 index 000000000..e69de29bb diff --git a/src/danmu.js b/src/danmaku.js similarity index 100% rename from src/danmu.js rename to src/danmaku.js diff --git a/src/index.js b/src/index.js index 752c8a3f1..fa48e3f5c 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import I18n from './i18n'; import Player from './player'; import Controls from './controls'; import Contextmenu from './contextmenu'; -import Danmu from './danmu'; +import Danmaku from './danmaku'; import Info from './info'; import Subtitle from './subtitle'; import Events from './events'; @@ -81,7 +81,7 @@ class Artplayer extends Emitter { this.player = new Player(this); this.controls = new Controls(this); this.contextmenu = new Contextmenu(this); - this.danmu = new Danmu(this); + this.danmaku = new Danmaku(this); this.subtitle = new Subtitle(this); this.info = new Info(this); this.events = new Events(this);