添加ready事件

This commit is contained in:
Harvey committed 2019-10-10 11:33:24 +08:00
1 parent d43a71b931
commit a6816d68fa
10 files changed
+42 -51

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ export default class Hotkey {
this.art = art;
this.keys = {};
if (this.art.option.hotkey) {
this.art.once('video:canplay', () => {
this.art.on('ready', () => {
this.add(27, () => {
if (art.player.fullscreenWeb) {
art.player.fullscreenWeb = false;