问题描述
我已经在Android 3.1及更高版本有一个问题的WebView。我与℃的的WebView;视频>在我的活动
标记,它起着没有任何问题。当活动的onDestroy()
叫我打电话破坏()
上的WebView停止录像。一切工作正常。
I've got an issue with WebView on Android 3.1 and higher. I have a WebView with the <video>
tag in my activity and it plays without any problems. When the activity onDestroy()
is called I'm calling destroy()
on the WebView to stop the video. Everything works fine.
出现问题时,我preSS发挥,然后切换到全屏,退出全屏和preSS发挥了。然后我破坏活动和web视图,但视频仍然在运行,为什么?
The issue occurs when I press play, then switch into fullscreen, exit fullscreen and press play again. Then I destroy the Activity and WebView, but the video is still running—why?
我打电话从 onShowCustomView回调(查看视图,CustomViewCallback回调)
当我返回从全屏。
I call the callback from onShowCustomView(View view, CustomViewCallback callback)
when I return from fullscreen.
视频声音停止,当我打开相同或其他视频。
The video sound stops when I open the same or other video.
我怎样才能关机一切,当我与当前的活动正在做什么?
How can I shutdown everything when I'm done with the current Activity?
推荐答案
加载空白页时,破坏活动的工作。
Loading blank page when destroying activity works.
这篇关于Android的HTML5视频无法摧毁的WebView关机后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!