MediaStreamTrack: readyState property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
The readyState
read-only property of the MediaStreamTrack
interface returns an enumerated value giving the status of the track.
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 theMediaStreamTrack.enabled
property."ended"
which indicates that the input is not giving any more data and will never provide new data.
Specifications
Specification |
---|
Media Capture and Streams # dom-mediastreamtrack-readystate |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
readyState |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
- Media Capture and Streams API
- WebRTC
- The
ended
event