Overview / Web Technology
Web technology reference for developers
HTML
Structure of content on the web
CSS
Code used to describe document style
JavaScript
General-purpose scripting language
HTTP
Protocol for transmitting web resources
Web APIs
Interfaces for building web applications
Web Extensions
Developing extensions for web browsers
Accessibility
Build web projects usable for all
Web Technology
Web technology reference for developers
Filter sidebar
In this articleMediaStream
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.
Syntaxjs
addTrack(track)
Parameters
track
A MediaStreamTrack
to add to the stream.
None (undefined
).
MediaStream
, the interface it belongs to..
This page was last modified on Mar 11, 2025 by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch 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