mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:28:11 +00:00
LibWeb: Implement the HTMLMediaElement show-poster flag
Note that this doesn't do much yet, as the HTMLVideoElement does not handle its poster attribute as of this commit.
This commit is contained in:
parent
12c15641c1
commit
b384f2009d
2 changed files with 32 additions and 5 deletions
|
@ -68,6 +68,7 @@ public:
|
|||
void set_current_playback_position(double);
|
||||
|
||||
double duration() const;
|
||||
bool show_poster() const { return m_show_poster; }
|
||||
bool paused() const { return m_paused; }
|
||||
bool ended() const;
|
||||
bool potentially_playing() const;
|
||||
|
@ -113,6 +114,7 @@ private:
|
|||
WebIDL::ExceptionOr<void> pause_element();
|
||||
void seek_element(double playback_position, MediaSeekMode = MediaSeekMode::Accurate);
|
||||
void notify_about_playing();
|
||||
void set_show_poster(bool);
|
||||
void set_paused(bool);
|
||||
void set_duration(double);
|
||||
|
||||
|
@ -171,6 +173,9 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/media.html#default-playback-start-position
|
||||
double m_default_playback_start_position { 0 };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#show-poster-flag
|
||||
bool m_show_poster { true };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-duration
|
||||
double m_duration { NAN };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue