enabled property

Controls the enabled state for the MediaStreamTrack object.

Syntax

JavaScript
ptr = object.enabled

 

Property values

Type: boolean

If true, the state of the object is enabled. If false, it is disabled.

Remarks

After a MediaStreamTrack is detached from its source, its enabled attribute still changes value when set.

See also

MediaStreamTrack

 

 

Show: