html5 video on Android 4: play fullscreen then redirect to another webpage - not working

前端 未结 4 899
感动是毒
感动是毒 2021-02-13 03:42

I\'m designing an html5 page for Android 4 smartphones with a single 3gpp (or mp4) video that has to autoplay fullscreen when opened; when video ends should redirect to another

4条回答
  •  清歌不尽
    2021-02-13 04:08

    It seems in later versions of android, programmatic video.play() requires explicit authorization from the WebView. eg

    settings.setMediaPlaybackRequiresUserGesture(false);

提交回复
热议问题