mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:32:45 +00:00 
			
		
		
		
	LibWeb: Implement the HTMLMediaElement fastSeek method
This commit is contained in:
		
							parent
							
								
									c987c934d0
								
							
						
					
					
						commit
						32e2207b55
					
				
					 3 changed files with 9 additions and 0 deletions
				
			
		|  | @ -208,6 +208,13 @@ void HTMLMediaElement::set_current_time(double current_time) | |||
|     } | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/media.html#dom-media-fastseek
 | ||||
| void HTMLMediaElement::fast_seek(double time) | ||||
| { | ||||
|     // The fastSeek(time) method must seek to the time given by time, with the approximate-for-speed flag set.
 | ||||
|     seek_element(time, MediaSeekMode::ApproximateForSpeed); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:current-playback-position-13
 | ||||
| void HTMLMediaElement::set_current_playback_position(double playback_position) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn