Android video does not resume in webview -


i use webview show local html content contains video on android 4.2 , 4.3.

and call "webview.onpause()" method prevent video still playback when activity not visible.

when activity comes foreground, video not resume after call "webview.onresume()" method.

how can resume video after activity comes foreground?

thanks.

by default, it's not possible start media playback automatically script. can change behavior websettings.setmediaplaybackrequiresusergesture api: http://developer.android.com/reference/android/webkit/websettings.html#setmediaplaybackrequiresusergesture(boolean)


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -