readyState property
Gets the current state of the MediaSource.
Important This property is not supported in Internet Explorer 11 on Windows 7.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
state = object.readyState |
Property values
Type: ReadyState
The current state of the MediaSource.
ReadyState values:
| Value | Condition |
|---|---|
|
The MediaSource is not attached to a media element. |
|
A media element has opened the MediaSource. The MediaSource is ready to receive media data to the SourceBuffer objects in sourceBuffers. |
|
endOfStream has been called on the MediaSource, but the MediaSource is still attached to the media element. |
See also
Show:
