HTML <오디오> 사전 로드 속성
예시
작성자는 페이지가 로드될 때 사운드가 로드되지 않아야 한다고 생각합니다.
<audio controls preload="none">
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
정의 및 사용
속성 은 preload
작성자가 페이지가 로드될 때 오디오 파일이 로드되어야 한다고 생각하는지 여부와 방법을 지정합니다.
이 preload
속성을 통해 작성자는 최상의 사용자 경험으로 이어질 것이라고 생각하는 것에 대한 힌트를 브라우저에 제공할 수 있습니다. 이 속성은 경우에 따라 무시될 수 있습니다.
참고: preload 속성이 있는 경우 무시됩니다 autoplay
.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Attribute | |||||
---|---|---|---|---|---|
preload | 4.0 | 9.0 | 4.0 | 4.0 | 11.5 |
통사론
<audio preload="auto|metadata|none">
속성 값
Value | Description |
---|---|
auto | The author thinks that the browser should load the entire audio file when the page loads |
metadata | The author thinks that the browser should load only metadata when the page loads |
none | The author thinks that the browser should NOT load the audio file when the page loads |
❮ HTML <오디오> 태그