I need to extract the Uri of the currently playing video inside the video image embedded in the web view. I can get this working for Android 2.1 to 2.3.7 using the solution provided here.
Android will get the path to the video source from VideoView .
Unfortunately, this does not work in android 3.0 above, since the onShowCustomView callback is NOT called in minimized mode.
This issue is also logged here.
http://code.google.com/p/android/issues/detail?id=36020
Can someone provide me with some alternative solution for getting a video-visual uri.
Ok After a bit of searching (see answer https://stackoverflow.com/a/3/5755/ ... ), there seems to be a way to listen to video events via JNI. Now I'm not sure how to write a JNI function that listens for a video event. Can anyone tell if this is possible and how to do it.
Ok last groove effort
according to this answer Show HTML5 fullscreen
onShowCustomView is called in full screen mode. Now the problem is how to make the video play in full screen when I have no control over the site.
source share