MediaStreamTrack: clone() 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.
Theclone() method of theMediaStreamTrackinterface creates a duplicate of theMediaStreamTrack. This newMediaStreamTrack object is identical except for its uniqueid.
In this article
Syntax
js
clone()Parameters
None.
Return value
A newMediaStreamTrack instance which is identical to the oneclone() was called, except for its new uniqueid.
Specifications
| Specification |
|---|
| Media Capture and Streams> # dom-mediastreamtrack-clone> |