diff options
Diffstat (limited to 'WebCore/html/HTMLMediaElement.idl')
-rw-r--r-- | WebCore/html/HTMLMediaElement.idl | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/WebCore/html/HTMLMediaElement.idl b/WebCore/html/HTMLMediaElement.idl index 1e3eb90..931980b 100644 --- a/WebCore/html/HTMLMediaElement.idl +++ b/WebCore/html/HTMLMediaElement.idl @@ -33,22 +33,24 @@ interface [GenerateConstructor, Conditional=VIDEO] HTMLMediaElement : HTMLElemen attribute DOMString src; readonly attribute DOMString currentSrc; - const unsigned short EMPTY = 0; - const unsigned short LOADING = 1; - const unsigned short LOADED_METADATA = 2; - const unsigned short LOADED_FIRST_FRAME = 3; - const unsigned short LOADED = 4; + const unsigned short NETWORK_EMPTY = 0; + const unsigned short NETWORK_IDLE = 1; + const unsigned short NETWORK_LOADING = 2; + const unsigned short NETWORK_LOADED = 3; + const unsigned short NETWORK_NO_SOURCE = 4; readonly attribute unsigned short networkState; - readonly attribute float bufferingRate; + readonly attribute TimeRanges buffered; void load() raises (DOMException); + DOMString canPlayType(in DOMString type); // ready state - const unsigned short DATA_UNAVAILABLE = 0; - const unsigned short CAN_SHOW_CURRENT_FRAME = 1; - const unsigned short CAN_PLAY = 2; - const unsigned short CAN_PLAY_THROUGH = 3; + const unsigned short HAVE_NOTHING = 0; + const unsigned short HAVE_METADATA = 1; + const unsigned short HAVE_CURRENT_DATA = 2; + const unsigned short HAVE_FUTURE_DATA = 3; + const unsigned short HAVE_ENOUGH_DATA = 4; readonly attribute unsigned short readyState; readonly attribute boolean seeking; @@ -57,27 +59,15 @@ interface [GenerateConstructor, Conditional=VIDEO] HTMLMediaElement : HTMLElemen setter raises (DOMException); readonly attribute float duration; readonly attribute boolean paused; - attribute float defaultPlaybackRate - setter raises (DOMException); - attribute float playbackRate - setter raises (DOMException); + attribute float defaultPlaybackRate; + attribute float playbackRate; readonly attribute TimeRanges played; readonly attribute TimeRanges seekable; readonly attribute boolean ended; attribute boolean autoplay; - void play() - raises (DOMException); - void pause() - raises (DOMException); - - // looping - attribute float start; - attribute float end; - attribute float loopStart; - attribute float loopEnd; - attribute unsigned long playCount - setter raises (DOMException); - attribute unsigned long currentLoop; + attribute boolean loop; + void play(); + void pause(); // controls attribute boolean controls; |