MediaStreamTrack.kind
읽기 전용 속성은 트랙이 오디오인 경우 "audio"
, 비디오인 경우 "video"
인 DOMString
을 반환합니다. 트랙이 소스에서 분리된 경우엔 바뀌지 않습니다.
구문
const type = track.kind
값
DOMString
. 가능한 값은 다음과 같습니다.
"audio"
: 트랙이 오디오 트랙입니다."video"
: 트랙이 비디오 트랙입니다.
명세
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.kind' 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.