readyState property
ReadyState
get
readyState
The readyState
read-only property of the
MediaSource interface returns an enum representing the state of the
current MediaSource
. The three possible values are:
closed
: The source is not currently attached to a media element.open
: The source is attached to a media element and ready to receive SourceBuffer objects.ended
: The source is attached to a media element but the stream has been ended via a call to MediaSource.endOfStream.
Implementation
external ReadyState get readyState;