MediaStreamTrackEvent

The MediaStreamTrackEvent interface represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.

The events based on this interface are addtrack and removetrack

Properties

Also inherits properties from its parent interface, Event.

track Read only
A MediaStreamTrack object representing the track which was added to the stream.

Constructor

MediaStreamTrackEvent()
Constructs a new MediaStreamTrackEvent with the specified configuration.

Methods

Also inherits methods from its parent Event.

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStreamTrackEvent' in that specification.
Candidate Recommendation  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 55Edge ? Firefox Full support 50IE No support NoOpera Full support 42Safari ? WebView Android Full support 55Chrome Android Full support 55Edge Mobile ? Firefox Android Full support 50Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0
MediaStreamTrackEvent() constructorChrome Full support 55Edge ? Firefox Full support 50IE No support NoOpera Full support 42Safari ? WebView Android Full support 55Chrome Android Full support 55Edge Mobile ? Firefox Android Full support 50Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0
trackChrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, jpmedley
Last updated by: Sheppy,