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
Post a Comment