files/en-us/web/api/mediastreamtrackevent/index.md
{{APIRef("Media Capture and Streams")}}
The MediaStreamTrackEvent interface of the {{domxref("Media Capture and Streams API", "", "", "nocode")}} represents events which indicate that a {{domxref("MediaStream")}} has had tracks added to or removed from the stream through calls to Media Capture and Streams API methods. These events are sent to the stream when these changes occur.
{{InheritanceDiagram}}
The events based on this interface are {{domxref("MediaStream/addtrack_event", "addtrack")}} and {{domxref("MediaStream/removetrack_event", "removetrack")}}.
MediaStreamTrackEvent with the specified configuration.Also inherits properties from its parent interface, {{domxref("Event")}}.
Also inherits methods from its parent interface, {{domxref("Event")}}.
{{Specifications}}
{{Compat}}