所属分类:web前端开发
使用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>