添加字幕切换方法

This commit is contained in:
Harvey committed 2019-09-29 17:02:35 +08:00
1 parent 6f84fcc8f2
commit 8d6dcdf6aa
5 files changed
+24 -10

No files matched your search

+3 -1
View File
@@ -31,7 +31,9 @@ export default function switchMix(art, player) {
option.url = url;
player.playbackRate = false;
player.aspectRatio = false;
player.currentTime = 0;
art.once('video:canplay', () => {
player.currentTime = 0;
});
if (playing) {
player.play = true;
}