The track’s ready state; values.
Note: This property is read-only.
var state = track.readyState;
Returns an object of type unsigned shortunsigned short
- LIVE (0)- the track is active; the output may be switched on and off with the enabled attribute.
- MUTED (1) - the track’s underlying media source is temporarily unable to provide realtime data.
- ENDED (2) - the track has ended, and the underlying media source will not provide further data.