We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0730783 commit 6456d5bCopy full SHA for 6456d5b
dashboard/src/components/players/ArtVideoPlayer.vue
@@ -698,25 +698,8 @@ const handleQualityChange = (qualityName) => {
698
currentPlayingUrl.value = quality.url
699
700
// 触发画质切换事件,让父组件更新videoUrl
701
+ // 父组件更新videoUrl后会触发watch监听器重新初始化播放器
702
emit('quality-change', quality)
-
703
- // 等待父组件更新videoUrl后重新初始化播放器
704
- nextTick(() => {
705
- if (quality.url && artPlayerInstance.value) {
706
- // 更新播放器URL
707
- artPlayerInstance.value.switchUrl(quality.url)
708
709
- // 恢复播放位置和状态
710
- setTimeout(() => {
711
- if (artPlayerInstance.value) {
712
- artPlayerInstance.value.currentTime = currentTime
713
- if (!isPaused) {
714
- artPlayerInstance.value.play()
715
- }
716
717
- }, 100)
718
719
- })
720
}
721
722
0 commit comments