網(wǎng)站上的視頻僅顯示為靜態(tài)圖像。您不能進(jìn)行交互、暫停、全屏或任何操作。//這個(gè)循環(huán)只是選擇視頻并將其從文件中拉出并顯示出來。 <video>
<source src="Pics/animations/'.$row2["imgFullNameAnimations"].'" type=video/'.$row2["endingAnimations"].'>
</video>
1 回答

皈依舞
TA貢獻(xiàn)1851條經(jīng)驗(yàn) 獲得超3個(gè)贊
看起來您看到的是靜態(tài)圖像,但您看到的是視頻的開頭。您需要添加autoplay
屬性和/或controls
屬性。第一個(gè)將自動開始您的視頻,而controls
您可以選擇開始、跳過、全屏。
<video controls> <source src="Pics/animations/'.$row2["imgFullNameAnimations"].'" type=video/'.$row2["endingAnimations"].'> </video>
https://www.w3schools.com/tags/att_video_controls.asp
- 1 回答
- 0 關(guān)注
- 161 瀏覽
添加回答
舉報(bào)
0/150
提交
取消