1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibWeb: Implement the HTMLMediaElement currentSrc attribute

This commit is contained in:
Timothy Flynn 2023-04-19 06:44:40 -04:00 committed by Andreas Kling
parent 74a6f50c91
commit 1a67b86b76
3 changed files with 11 additions and 1 deletions

View file

@ -33,6 +33,8 @@ public:
void queue_a_media_element_task(JS::SafeFunction<void()> steps);
String const& current_src() const { return m_current_src; }
enum class NetworkState : u16 {
Empty,
Idle,
@ -142,6 +144,9 @@ private:
// https://html.spec.whatwg.org/multipage/media.html#dom-media-crossorigin
CORSSettingAttribute m_crossorigin { CORSSettingAttribute::NoCORS };
// https://html.spec.whatwg.org/multipage/media.html#dom-media-currentsrc
String m_current_src;
// https://html.spec.whatwg.org/multipage/media.html#dom-media-networkstate
NetworkState m_network_state { NetworkState::Empty };