Skip to content

Commit

Permalink
fix: paused video will play automatically after switching url (#147 c…
Browse files Browse the repository at this point in the history
  • Loading branch information
liuycy committed Feb 18, 2024
1 parent 9c6e2a4 commit da25476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/home/previews/aliyun_video.tsx
Expand Up @@ -372,7 +372,9 @@ const Preview = () => {
option.quality = quality
player.quality = quality
curSeek = player.currentTime
let curPlaying = player.playing
await player.switchUrl(quality[quality.length - 1].url)
if (!curPlaying) player.pause()
setTimeout(() => {
player.seek = curSeek
}, 1000)
Expand Down

0 comments on commit da25476

Please sign in to comment.