使用loop屬性指定音頻/視頻將重新開始。您可以嘗試運行以下代碼來實現循環屬性 –
示例
<!DOCTYPE HTML>
<html>
<body>
<video width = "300" height = "200" controls loop>
<source src = "/html5/foo.ogg" type = "video/ogg" />
<source src = "/html5/foo.mp4" type = "video/mp4" />
Your browser does not support the video element.
</video>
</body>
</html>
登錄后復制
以上就是如何在HTML中指定音頻/視頻在播放結束后每次都重新開始?的詳細內容,更多請關注www.92cms.cn其它相關文章!






