mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibWeb: Implement the HTMLMediaElement "potentially playing" concept
This commit is contained in:
		
							parent
							
								
									9f71799456
								
							
						
					
					
						commit
						12c15641c1
					
				
					 2 changed files with 31 additions and 0 deletions
				
			
		|  | @ -70,6 +70,7 @@ public: | |||
|     double duration() const; | ||||
|     bool paused() const { return m_paused; } | ||||
|     bool ended() const; | ||||
|     bool potentially_playing() const; | ||||
|     WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> play(); | ||||
|     WebIDL::ExceptionOr<void> pause(); | ||||
| 
 | ||||
|  | @ -115,6 +116,7 @@ private: | |||
|     void set_paused(bool); | ||||
|     void set_duration(double); | ||||
| 
 | ||||
|     bool blocked() const; | ||||
|     bool is_eligible_for_autoplay() const; | ||||
|     bool has_ended_playback() const; | ||||
|     WebIDL::ExceptionOr<void> reached_end_of_media_playback(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn