HTML <video> önyükleme Özelliği
Örnek
Yazar, sayfa yüklendiğinde videonun YÜKLENMEMESİ gerektiğini düşünüyor:
<video controls preload="none">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Tanım ve Kullanım
Nitelik preload
, yazarın sayfa yüklendiğinde videonun yüklenmesi gerektiğini düşünüp düşünmediğini ve nasıl düşündüğünü belirtir.
Nitelik preload
, yazarın tarayıcıya, en iyi kullanıcı deneyimine yol açacağını düşündüğü şey hakkında bir ipucu vermesini sağlar. Bu öznitelik bazı durumlarda göz ardı edilebilir.
Not: Öznitelik preload
varsa yoksayılır
autoplay
.
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Attribute | |||||
---|---|---|---|---|---|
preload | 4.0 | 9.0 | 4.0 | 3.1 | 10.5 |
Sözdizimi
<video preload="auto|metadata|none">
Özellik Değerleri
Value | Description |
---|---|
auto | The author thinks that the browser should load the entire video 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 video when the page loads |
❮ HTML <video> etiketi