1
我的html5視頻預加載設置中有一個後備海報圖像,當加載視頻時等待實際視頻加載時加載混亂,然後突然消失。我的問題是我可以更加整潔地編碼這個過渡,我怎麼能不讓圖像閃爍,然後在視頻加載之前就這麼雜亂地消失?另外,當無法加載視頻時,例如在移動設備和手持設備上,如何刪除渲染到後備圖像的播放按鈕?HTML5 Video Fallback Image加載雜亂
這裏是我的設置:
<div class = "sudirlayheader-container">
<div class = "sudirlayvideo-container">
<video preload = "auto" autoplay = "autoplay" loop = "loop" volume = "0" poster="video/Dubai-Wallpaper.png">
<source src = "video/sudirlayvid.mp4" type = "video/mp4">
<source src = "video/sudirlayvid.ogg" type = "video/ogg">
<source src = "video/sudirlayvid.webm" type = "video/webm">
<source src = "video/sudirlayvid.mov" type = "video/mov">
</video>
</div>
</div>