mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	1
This commit is contained in:
		
							parent
							
								
									c7b01a6af3
								
							
						
					
					
						commit
						87eeac58a3
					
				| @ -648,6 +648,12 @@ background-color: #0000; | ||||
|                     // Pause video and audio when seeking | ||||
|                     video.pause(); | ||||
|                     audio.pause(); | ||||
|                      | ||||
|                     // Sync audio with video during seeking | ||||
|                     if (Math.abs(video.currentTime() - audio.currentTime) > 0.3) { | ||||
|                         audio.currentTime = video.currentTime(); | ||||
|                     } | ||||
| 
 | ||||
|                     if (!checkAudioBuffer()) { | ||||
|                         // Resume playback when buffering is sufficient | ||||
|                         audio.addEventListener('canplay', () => { | ||||
| @ -658,6 +664,7 @@ background-color: #0000; | ||||
|                     } | ||||
|                 }; | ||||
| 
 | ||||
| 
 | ||||
|                 video.on('play', () => { | ||||
|                     audio.play(); | ||||
|                 }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley