HTML5 Video Autoplay not working correctly

后端 未结 7 1230
鱼传尺愫
鱼传尺愫 2020-12-09 08:19

Im using this code:

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 09:21

    Mobile browsers generally ignore this attribute to prevent consuming data until user explicitly starts the download.

    UPDATE: newer version of mobile browser on Android and iOS do support autoplay function. But it only works if the video is muted or has no audio channel:

    Some additional info: https://webkit.org/blog/6784/new-video-policies-for-ios/

提交回复
热议问题