0
我試圖將視頻添加到我的網站作爲背景視頻。如何在網站上播放視頻作爲背景而不中斷?
但它不能順利加載。
任何人都可以幫助我解決這個問題嗎?
這是我使用的代碼。
<video id="bgVideo" preload="true" autoplay loop muted poster="images/loading-landing.jpg" >
<source src="videos/Main-Page.mp4" type="video/mp4" >
</video>
用於顯示在您的網站的視頻小費它創造了很多交通,並會使渲染速度緩慢..通常有些人會使用iframe或者youtube爲你提供了一個從iframe這樣的網站嵌入視頻的功能,它有助於渲染。你可以檢查你的情況下的設置,以顯示它在後臺隱藏暫停/播放等功能。 –