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


Also inherits properties from its parent interface, Event.

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


Constructs a new MediaStreamTrackEvent with the specified configuration.


Also inherits methods from its parent Event.


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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support55 ?50 No42 ?
MediaStreamTrackEvent() constructor55 ?50 No42 ?
track ? ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5555 ?5042 ?6.0
MediaStreamTrackEvent() constructor5555 ?5042 ?6.0
track ? ? ? ? ? ? ?

See also

Document Tags and Contributors

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