Web/API/MediaStreamTrack/readyState

From Get docs


The MediaStreamTrack.readyState read-only property returns an enumerated value giving the status of the track.

Syntax

const state = track.readyState

Value

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 MediaStreamTrack.enabled property.
  • "ended" which indicates that the input is not giving any more data and will never provide new data. 

Specifications

Specification Status Comment
Media Capture and StreamsThe definition of 'MediaStreamTrack.readyState' in that specification. Candidate Recommendation Initial specification.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
readyState Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 50

IE

No support No

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 50

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
No support  
No support


See also