MediaStreamTrack.label

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.label 읽기 전용 속성은 사용자 에이전트가 트랙 소스를 식별하기 위해 지정한 레이블을 담은 DOMString을 반환합니다. 소스가 연결되지 않은 경우 빈 문자열이며, 연결됐던 트랙이 소스에서 분리되더라도 레이블은 바뀌지 않습니다.

구문

js
const label = track.label;

사용자 에이전트가 지정한 식별 레이블. "internal microphone" 등의 형태입니다.

명세

Specification
Media Capture and Streams
# dom-mediastreamtrack-label

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
label

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

같이 보기