A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/MediaStream/addTrack below:

MediaStream: addTrack() method - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. MediaStream
  4. addTrack()

Filter sidebar

In this article
  1. Media Capture and Streams API (Media Stream)
  2. MediaStream
  3. Constructor
    1. MediaStream()
  4. Instance properties
    1. active
    2. id
  5. Instance methods
    1. addTrack()
    2. clone()
    3. getAudioTracks()
    4. getTrackById()
    5. getTracks()
    6. getVideoTracks()
    7. removeTrack()
  6. Events
    1. addtrack
    2. removetrack
  7. Inheritance
    1. EventTarget
  8. Related pages for Media Capture and Streams
    1. CanvasCaptureMediaStreamTrack
    2. HTMLCanvasElement.captureStream()
    3. HTMLMediaElement.captureStream()
    4. InputDeviceInfo
    5. MediaDeviceInfo
    6. MediaDevices
    7. MediaStreamTrack
    8. MediaStreamTrackEvent
    9. MediaTrackConstraints
    10. MediaTrackSettings
    11. MediaTrackSupportedConstraints
    12. Navigator.mediaDevices
    13. OverconstrainedError
  9. Guides
    1. Capabilities, constraints, and settings
    2. Taking still photos with getUserMedia()
In this article MediaStream: addTrack() method

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.

The addTrack() method of the MediaStream interface adds a new track to the stream. The track is specified as a parameter of type MediaStreamTrack.

Note: If the specified track is already in the stream's track set, this method has no effect.

Syntax

js

addTrack(track)
Parameters
track

A MediaStreamTrack to add to the stream.

Return value

None (undefined).

Specifications Specification Media Capture and Streams
# dom-mediastream-addtrack
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Mar 11, 2025 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4