The read-only property
MediaStreamTrack.readyState returns an enumerated value giving the status of the track.
var state = track.readyState;
It takes one of the following values:
"live"which indicates that an input is connected and does its best-effort in providing real-time data. In that case, the output of data can be switched on or off using the
"ended"which indicates that the input is not giving any more data and will never provide new data.
|Media Capture and Streams
The definition of 'MediaStreamTrack.readyState' in that specification.
|Candidate Recommendation||Initial specification.|
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
|Feature||Chrome||Edge||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic support||(Yes)||(Yes)||50 (50)||No support||(Yes)||?|
|Feature||Android||Android Webview||Edge||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile||Chrome for Android|
|Basic support||?||(Yes)||(Yes)||50.0 (50)||No support||?||?||(Yes)|