MediaStreamTrack.kind
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.kind
읽기 전용 속성은 트랙이 오디오인 경우 "audio"
, 비디오인 경우 "video"
인 DOMString
을 반환합니다. 트랙이 소스에서 분리된 경우엔 바뀌지 않습니다.
구문
js
const type = track.kind;
값
DOMString
. 가능한 값은 다음과 같습니다.
"audio"
: 트랙이 오디오 트랙입니다."video"
: 트랙이 비디오 트랙입니다.
명세
Specification |
---|
Media Capture and Streams # dom-mediastreamtrack-kind |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
kind |
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.