fix(Player): 将 @canplaythrough 事件替换为 @playing 以更准确反映缓冲状态
				
					
				
			`@canplaythrough` 事件在某些情况下可能无法准确反映音频的缓冲状态,导致播放状态显示不准确。将其替换为 `@playing` 事件可以更可靠地更新缓冲状态,提升用户体验。
This commit is contained in:
		
							parent
							
								
									956fef1d8a
								
							
						
					
					
						commit
						a51ddcc023
					
				| 
						 | 
				
			
			@ -68,7 +68,7 @@ function playPrevious() {
 | 
			
		|||
			:src="playQueueStore.list[playQueueStore.currentIndex] ? playQueueStore.list[playQueueStore.currentIndex].song.sourceUrl : ''"
 | 
			
		||||
			ref="playerRef" autoplay v-if="playQueueStore.list.length !== 0" @ended="playNext"
 | 
			
		||||
			@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>
 | 
			
		||||
 | 
			
		||||
		<div
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user