W3cubDocs

/DOM

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.

Properties

Also inherits properties from its parent 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.
Editor's Draft

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

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent