MediaStreamTrack
인터페이스의 clone()
메서드는 MediaStreamTrack
객체의 사본을 반환합니다. 사본은 새로운 id
를 제외하면 모든 값이 원본과 동일합니다.
구문
const newTrack = track.clone()
반환 값
clone()
을 호출한 MediaStreamTrack
에서 id
를 제외하면 똑같은 새로운 MediaStreamTrack
.
명세
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'clone()' in that specification. |
Candidate Recommendation | Initial definition. |
브라우저 호환성
BCD tables only load in the browser
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.