HTML <วิดีโอ> แอตทริบิวต์โปสเตอร์
ตัวอย่าง
เครื่องเล่นวิดีโอที่มีภาพโปสเตอร์:
<video controls poster="/images/w3html5.gif">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
ความหมายและการใช้งาน
แอตทริบิวต์poster
ระบุภาพที่จะแสดงในขณะที่กำลังดาวน์โหลดวิดีโอ หรือจนกว่าผู้ใช้จะกดปุ่มเล่น หากไม่ได้รวมไว้ ระบบจะใช้เฟรมแรกของวิดีโอแทน
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
poster | 4.0 | 9.0 | 3.6 | 3.1 | 10.5 |
ไวยากรณ์
<video poster="URL">
ค่าแอตทริบิวต์
Value | Description |
---|---|
URL | Specifies the URL of the image file. Possible values:
|
❮ แท็ก HTML <วิดีโอ>