去除音频超时保护
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s
				
			This commit is contained in:
		
							parent
							
								
									9ef75a1745
								
							
						
					
					
						commit
						27234f1a5a
					
				| @ -123,13 +123,13 @@ function playAudioData(audioData) { | |||||||
|       }; |       }; | ||||||
|        |        | ||||||
|       // 超时保护
 |       // 超时保护
 | ||||||
|       setTimeout(() => { |       // setTimeout(() => {
 | ||||||
|         if (isPlaying) { |       //   if (isPlaying) {
 | ||||||
|           console.log('音频播放超时,强制结束'); |       //     console.log('音频播放超时,强制结束');
 | ||||||
|           isPlaying = false; |       //     isPlaying = false;
 | ||||||
|           resolve(); |       //     resolve();
 | ||||||
|         } |       //   }
 | ||||||
|       }, (audioData.duration + 0.5) * 1000); |       // }, (audioData.duration + 0.5) * 1000);
 | ||||||
|        |        | ||||||
|       source.start(0); |       source.start(0); | ||||||
|       console.log(`开始播放音频片段,时长: ${audioData.duration}秒`); |       console.log(`开始播放音频片段,时长: ${audioData.duration}秒`); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Song367
						Song367