The MediaStreamTrack.readyState
read-only property returns an enumerated value giving the status of the track.
MediaStreamTrack.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 theMediaStreamTrack.enabled
property. -
"ended"
which indicates that the input is not giving any more data and will never provide new data.
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
readyState |
26
|
12
|
50
|
No
|
15
|
11
|
≤37
|
26
|
50
|
14
|
11
|
1.5
|
See also
- Media Stream API
- WebRTC
- The
ended
event
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState