mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:15:07 +00:00
LibWeb: Define steps to queue a media element task on a HTMLMediaElement
This commit is contained in:
parent
0a45554bf4
commit
9f8da9798a
2 changed files with 16 additions and 0 deletions
|
@ -25,6 +25,14 @@ JS::ThrowCompletionOr<void> HTMLMediaElement::initialize(JS::Realm& realm)
|
|||
return {};
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task
|
||||
void HTMLMediaElement::queue_a_media_element_task(JS::SafeFunction<void()> steps)
|
||||
{
|
||||
// To queue a media element task with a media element element and a series of steps steps, queue an element task on the media element's
|
||||
// media element event task source given element and steps.
|
||||
queue_an_element_task(media_element_event_task_source(), move(steps));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-navigator-canplaytype
|
||||
Bindings::CanPlayTypeResult HTMLMediaElement::can_play_type(DeprecatedString const& type) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue