readyState

The readyState read-only property of the MediaSource interface returns an enum representing the state of the current MediaSource.

MDN Reference