Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MediaStreamTrack.readyState

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

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

Syntax

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

Example

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStreamTrack.readyState' in that specification.
Editor's Draft Initial specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 50 (50) No support (Yes) ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? (Yes) 50.0 (50) No support ? ? (Yes)

See also

ドキュメントのタグと貢献者

 このページの貢献者: Sheppy, jpmedley, fscholz, teoli
 最終更新者: Sheppy,