如何指定每次用HTML结束音频/视频将重新开始?
使用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>