fix(Player): 将 @canplaythrough 事件替换为 @playing 以更准确反映缓冲状态

`@canplaythrough` 事件在某些情况下可能无法准确反映音频的缓冲状态,导致播放状态显示不准确。将其替换为 `@playing` 事件可以更可靠地更新缓冲状态,提升用户体验。
This commit is contained in:
Astrian Zheng 2025-05-25 00:15:01 +10:00
parent 956fef1d8a
commit a51ddcc023
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -68,7 +68,7 @@ function playPrevious() {
:src="playQueueStore.list[playQueueStore.currentIndex] ? playQueueStore.list[playQueueStore.currentIndex].song.sourceUrl : ''" :src="playQueueStore.list[playQueueStore.currentIndex] ? playQueueStore.list[playQueueStore.currentIndex].song.sourceUrl : ''"
ref="playerRef" autoplay v-if="playQueueStore.list.length !== 0" @ended="playNext" ref="playerRef" autoplay v-if="playQueueStore.list.length !== 0" @ended="playNext"
@pause="playQueueStore.isPlaying = false" @play="playQueueStore.isPlaying = true" @pause="playQueueStore.isPlaying = false" @play="playQueueStore.isPlaying = true"
@canplaythrough="playQueueStore.isBuffering = false" @waiting="playQueueStore.isBuffering = true"> @playing="playQueueStore.isBuffering = false" @waiting="playQueueStore.isBuffering = true">
</audio> </audio>
<div <div