Android webview html5 video autoplay not working on android 4.0.3

后端 未结 4 1785
滥情空心
滥情空心 2020-12-08 23:50

I have developed an application where the user can set videos on a web page: - They can specify a Youtube URL OR - They can upload a video

Depending on which option

4条回答
  •  清歌不尽
    2020-12-09 00:17

    [upgraded to answer per request]

    Autoplay on most mobile platforms (Android, iOS) gets blocked to avoid poor user experiences - video should only play following a user action. You can usually work around it by triggering the play() on another event (eg the onloaded event)

提交回复
热议问题