오디오 재생 속성
예시
오디오의 첫 번째 재생 범위(일부)를 초 단위로 가져옵니다.
var x = document.getElementById("myAudio");
document.getElementById("demo").innerHTML = "Start: " + x.played.start(0)
+ " End: " + x.played.end(0)
정의 및 사용
Played 속성은 TimeRanges 개체를 반환합니다.
TimeRanges 객체는 사용자가 이미 재생한 오디오의 범위를 나타냅니다.
재생 범위는 재생 오디오의 시간 범위입니다. 사용자는 오디오를 건너뛰면 여러 재생 범위를 얻습니다.
참고: 이 속성은 읽기 전용입니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
played | Yes | Yes | Yes | Yes | Yes |
통사론
audioObject.played
반환 값
Type | Description |
---|---|
TimeRanges Object | Represents the played parts of the audio. TimeRanges Object Properties:
Note: The first played range is index 0 |
❮ 오디오 개체