添加更多事件

This commit is contained in:
Harvey Zack committed 2018-11-24 10:57:05 +08:00
1 parent 2eb76650ba
commit 746e059a31
4 files changed
+4 -2

No files matched your search

@@ -66,7 +66,7 @@ function artplayerPluginSubtitle(art) {
cue.endTime = cuesCache[index].endTime + time;
});
notice.show(`${i18n.get('Subtitle offset time')}: ${value}s`);
art.emit('subtitle:offset', value);
art.emit('artplayerPluginSubtitle:set', value);
},
};
}
+1
View File
@@ -19,6 +19,7 @@ export default class Plugins {
pluginName = `plugin${this.id}`;
}
this[pluginName] = result;
this.art.emit('plugin:add', plugin);
return this;
}
}