HTML5 video autoplay not working in chrome

后端 未结 3 1801
南方客
南方客 2021-01-24 02:23

I am trying to show a video in my slider using a html5 video. This works fine with the controls parameter (showing controls). But when I add autoplay i

3条回答
  •  执念已碎
    2021-01-24 02:56

    Ended up here because I was having the same issue (no mp4 autoplay in Chrome despite it working in Firefox & Safari). This is what fixed it for me:

    $('#video')[0].load();
    

    Hopefully this may help somebody else. My HTML:

    
    

提交回复
热议问题