mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	[IN TESTING] attempt to fix #103
This commit is contained in:
		
							parent
							
								
									64b52c36d9
								
							
						
					
					
						commit
						8054805054
					
				| @ -767,6 +767,11 @@ function cstsRemaining(totalTimeInSeconds, elapsedTimeInSeconds) { | ||||
|     setInterval(()=>{ | ||||
|     if(!document.getElementById("video").paused) { | ||||
|       document.getElementById("play-pause").innerHTML = pauseSVG; | ||||
|        | ||||
|     } | ||||
|     else { | ||||
|       aud.pause() | ||||
|       document.getElementById("play-pause").innerHTML = playSVG; | ||||
|     } | ||||
|     }, 100); | ||||
|     //FIXME: saved playback intentionally overwritten | ||||
| @ -970,7 +975,7 @@ function cstsRemaining(totalTimeInSeconds, elapsedTimeInSeconds) { | ||||
|     const aud = document.getElementById("aud"); | ||||
|     const vid = document.getElementById("video"); | ||||
|     function shouldPlay() { | ||||
|       if(vid.readyState === HTMLMediaElement.HAVE_ENOUGH_DATA && aud.readyState === HTMLMediaElement.HAVE_ENOUGH_DATA) { | ||||
|       if(vid.readyState === HTMLMediaElement.HAVE_ENOUGH_DATA) { | ||||
|         startPlayback(); | ||||
|       } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley