aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLMediaElement.webidl
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-11-07 00:43:17 -0500
committerJosh Matthews <josh@joshmatthews.net>2016-05-03 18:05:18 -0400
commit5960fbe6048e74e6be5708f8326ef23f2708810e (patch)
treeca3bc03438310e5e76432e887387f3aeeb76ca0c /components/script/dom/webidls/HTMLMediaElement.webidl
parenteae27adc4af727699338b67f648cac85233679ce (diff)
downloadservo-5960fbe6048e74e6be5708f8326ef23f2708810e.tar.gz
servo-5960fbe6048e74e6be5708f8326ef23f2708810e.zip
Implement load, canPlayType, and error APIs for media elements.
Diffstat (limited to 'components/script/dom/webidls/HTMLMediaElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLMediaElement.webidl8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/webidls/HTMLMediaElement.webidl b/components/script/dom/webidls/HTMLMediaElement.webidl
index 5515618d6a9..30127ffec62 100644
--- a/components/script/dom/webidls/HTMLMediaElement.webidl
+++ b/components/script/dom/webidls/HTMLMediaElement.webidl
@@ -3,12 +3,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlmediaelement
-//enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
+enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
[Abstract]
interface HTMLMediaElement : HTMLElement {
// error state
- //readonly attribute MediaError? error;
+ readonly attribute MediaError? error;
// network state
attribute DOMString src;
@@ -21,8 +21,8 @@ interface HTMLMediaElement : HTMLElement {
readonly attribute unsigned short networkState;
// attribute DOMString preload;
//readonly attribute TimeRanges buffered;
- //void load();
- //CanPlayTypeResult canPlayType(DOMString type);
+ void load();
+ CanPlayTypeResult canPlayType(DOMString type);
// ready state
const unsigned short HAVE_NOTHING = 0;