mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
修复切换画质时不能接着播放问题
This commit is contained in:
1 parent
296a8122d8
commit
573c549ce1
3 files changed
+12
-8
No files matched your search
@@ -9,7 +9,9 @@ export default function switchMix(art, player) {
|
||||
option.url = url;
|
||||
player.playbackRateRemove();
|
||||
player.aspectRatioRemove();
|
||||
player.seek(currentTime);
|
||||
art.once('video:canplay', () => {
|
||||
player.currentTime = currentTime;
|
||||
});
|
||||
if (playing) {
|
||||
player.play();
|
||||
}
|
||||
@@ -29,7 +31,7 @@ export default function switchMix(art, player) {
|
||||
option.url = url;
|
||||
player.playbackRateRemove();
|
||||
player.aspectRatioRemove();
|
||||
player.seek(0);
|
||||
player.currentTime = 0;
|
||||
if (playing) {
|
||||
player.play();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user