Serenity Operating System
1/*
2 * Copyright (c) 2020, the SerenityOS developers.
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <LibWeb/HTML/HTMLElement.h>
10
11namespace Web::HTML {
12
13class HTMLMediaElement : public HTMLElement {
14 WEB_PLATFORM_OBJECT(HTMLMediaElement, HTMLElement);
15
16public:
17 virtual ~HTMLMediaElement() override;
18
19 Bindings::CanPlayTypeResult can_play_type(DeprecatedString const& type) const;
20
21 void load() const;
22 void pause() const;
23
24protected:
25 HTMLMediaElement(DOM::Document&, DOM::QualifiedName);
26
27 virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
28};
29
30}