GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — MediaStreamTrackEvent - Web APIs | MDN

MediaStreamTrackEvent

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.

  • See full compatibility
  • Learn more

The MediaStreamTrackEvent interface of the Media Capture and Streams API represents events which indicate that a 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.

The events based on this interface are addtrack and removetrack.

Constructor

MediaStreamTrackEvent()

Constructs a new MediaStreamTrackEvent with the specified configuration.

Instance properties

Also inherits properties from its parent interface, Event.

MediaStreamTrackEvent.track Read only

Returns a MediaStreamTrack object representing the track associated with the event.

Instance methods

Also inherits methods from its parent interface, Event.

Specifications

Specification
Media Capture and Streams
# mediastreamtrackevent

Browser compatibility

See also

  • MediaStream: addtrack and removetrack events
  • MediaStreamTrack
  • Media Capture and Streams API

Help improve MDN

Learn how to contribute

This page was last modified on Dec 25, 2023 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.