mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stub out readyState and networkState attributes for HTMLMediaElement.
This commit is contained in:
parent
3d38a60cee
commit
b8b4be34c0
3 changed files with 29 additions and 138 deletions
|
@ -14,23 +14,23 @@ interface HTMLMediaElement : HTMLElement {
|
|||
// attribute DOMString src;
|
||||
//readonly attribute DOMString currentSrc;
|
||||
// attribute DOMString crossOrigin;
|
||||
//const unsigned short NETWORK_EMPTY = 0;
|
||||
//const unsigned short NETWORK_IDLE = 1;
|
||||
//const unsigned short NETWORK_LOADING = 2;
|
||||
//const unsigned short NETWORK_NO_SOURCE = 3;
|
||||
//readonly attribute unsigned short networkState;
|
||||
const unsigned short NETWORK_EMPTY = 0;
|
||||
const unsigned short NETWORK_IDLE = 1;
|
||||
const unsigned short NETWORK_LOADING = 2;
|
||||
const unsigned short NETWORK_NO_SOURCE = 3;
|
||||
readonly attribute unsigned short networkState;
|
||||
// attribute DOMString preload;
|
||||
//readonly attribute TimeRanges buffered;
|
||||
//void load();
|
||||
//CanPlayTypeResult canPlayType(DOMString type);
|
||||
|
||||
// ready state
|
||||
//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;
|
||||
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;
|
||||
|
||||
// playback state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue