HTML5 Video autoplay on Mobile Browser

前端 未结 5 1315
情歌与酒
情歌与酒 2020-12-01 05:12

I am using the following HTML5 and JQuery code to play a playlist of videos whose URLs are in an array URLArray[].

function NextFrag(){

 if (index < URLA         


        
5条回答
  •  失恋的感觉
    2020-12-01 05:53

    What was missing for me in almost all answers I found on this topic is that I needed the playsinline attribute to work properly in mobile browsers (do not play fullscreen, instead embed it to the content of the website)

    So my full example would be:

    
    

提交回复
热议问题