MediaStreamTrack.clone()
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.
MediaStreamTrack
인터페이스의 clone()
메서드는 MediaStreamTrack
객체의 사본을 반환합니다. 사본은 새로운 id
를 제외하면 모든 값이 원본과 동일합니다.
구문
js
const newTrack = track.clone();
반환 값
clone()
을 호출한 MediaStreamTrack
에서 id
를 제외하면 똑같은 새로운 MediaStreamTrack
.
명세
Specification |
---|
Media Capture and Streams # dom-mediastreamtrack-clone |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
clone |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.