修复切换画质时不能接着播放问题

This commit is contained in:
zhw2590582 committed 2019-05-04 11:16:38 +08:00
1 parent 296a8122d8
commit 573c549ce1
3 files changed
+12 -8

No files matched your search

+4 -2
View File
@@ -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();
}