MediaStreamTrack.label
읽기 전용 속성은 사용자 에이전트가 트랙 소스를 식별하기 위해 지정한 레이블을 담은 DOMString
을 반환합니다. 소스가 연결되지 않은 경우 빈 문자열이며, 연결됐던 트랙이 소스에서 분리되더라도 레이블은 바뀌지 않습니다.
구문
const label = track.label
값
사용자 에이전트가 지정한 식별 레이블. "internal microphone"
등의 형태입니다.
명세
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.label' in that specification. |
Candidate Recommendation | Initial specification. |
브라우저 호환성
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.