오디오 오류 속성
예시
오디오의 오류 상태 가져오기:
var x = document.getElementById("myAudio").error.code;
정의 및 사용
error 속성은 MediaError 개체를 반환합니다.
MediaError 개체에는 오디오의 오류 상태를 포함하는 코드 속성이 있습니다.
참고: 이 속성은 읽기 전용입니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
error | Not supported | 9.0 | Not supported | Not supported | Not supported |
통사론
audioObject.error.code
반환 값
Type | Description |
---|---|
Number | The code property of the MediaError Object returns a number representing the error state of the audio:
|
❮ 오디오 개체