HTMLMediaElement.idl [plain text]
module html {
interface [GenerateConstructor, Conditional=VIDEO] HTMLMediaElement : HTMLElement {
readonly attribute MediaError error;
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;
readonly attribute unsigned short networkState;
readonly attribute float bufferingRate;
readonly attribute TimeRanges buffered;
void load()
raises (DOMException);
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;
readonly attribute unsigned short readyState;
readonly attribute boolean seeking;
attribute float currentTime
setter raises (DOMException);
readonly attribute float duration;
readonly attribute boolean paused;
attribute float defaultPlaybackRate
setter raises (DOMException);
attribute float playbackRate
setter raises (DOMException);
readonly attribute TimeRanges played;
readonly attribute TimeRanges seekable;
readonly attribute boolean ended;
attribute boolean autoplay;
void play()
raises (DOMException);
void pause()
raises (DOMException);
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 controls;
attribute float volume
setter raises (DOMException);
attribute boolean muted;
};
}