我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The MediaStreamTrack.enabled
property returns a Boolean
with a value of true
if the track is enabled, that is allowed to render the media source stream; or false
if it is disabled, that is not rendering the media source stream but silence and blackness. If the track has been disconnected, this value can be changed but has no effect.
Syntax
var bool = track.enabled; track.enabled = [true | false];
Example
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'enabled' in that specification. |
Editor's Draft | Initial specification. |
Browser compatibility
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | 24 (24) | No support | (Yes) | ? |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | (Yes) | 24.0 (24) | No support | ? | ? | (Yes) |