سمة التحميل المسبق لـ HTML <video>

❮ علامة HTML <video>

مثال

يعتقد المؤلف أنه لا يجب تحميل الفيديو عند تحميل الصفحة:

<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>

التعريف والاستخدام

تحدد السمة preloadما إذا كان المؤلف يعتقد أنه يجب تحميل الفيديو عند تحميل الصفحة وكيف يعتقد ذلك.

تسمح preloadالسمة للمؤلف بتقديم تلميح إلى المتصفح حول ما يعتقد أنه سيؤدي إلى أفضل تجربة للمستخدم. قد يتم تجاهل هذه السمة في بعض الحالات.

ملاحظة: يتم preloadتجاهل السمة إذا كانت autoplayموجودة.


دعم المتصفح

تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم السمة بشكل كامل.

Attribute
preload 4.0 9.0 4.0 3.1  10.5

بناء الجملة

<video preload="auto|metadata|none">

قيم السمات

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>