This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

readyState

Summary

The track’s ready state; values.

Property of apis/webrtc/MediaStreamTrackapis/webrtc/MediaStreamTrack

Syntax

Note: This property is read-only.

var state = track.readyState;

Return Value

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.