mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
添加字幕切换方法
This commit is contained in:
1 parent
6f84fcc8f2
commit
8d6dcdf6aa
5 files changed
+24
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user