title: workaround for onShowCustomView
body: <p>I need to extract the Uri of the currently playing video inside the videoview embedded in a webview . I am able to get this working for android 2.1 to 2.3.7 using the solution provided here </p>
  
  <p><a href="https://stackoverflow.com/questions/7321817/android-get-video-source-path-from-videoview">Android get Video source path from VideoView</a>.</p>
  
  <p>Unfortunately this does not work in android 3.0 above as the onShowCustomView callback is NOT called in minimised mode . </p>
  
  <p>This issue is also logged here<br>
  <a href="http://code.google.com/p/android/issues/detail?id=36020" rel="nofollow noreferrer">http://code.google.com/p/android/issues/detail?id=36020</a></p>
  
  <p>Can anybody provide me any alternative workaround to get the videoview uri. </p>
  
  <p>Ok After searching around for a bit (see answer <a href="https://stackoverflow.com/a/3866411/1135101">https://stackoverflow.com/a/3866411/1135101</a>) apparently there is a way to listen for video events via JNI. Now the thing is I am not sure how to write a JNI function that listens for a video event . Can anybody say if this is even possible and how to go about it.</p>
  
  <p>Ok last ditch effort </p>
  
  <p>according to this answer
  <a href="https://stackoverflow.com/questions/12319790/show-html5-video-fullscreen">Show HTML5 Video Fullscreen</a></p>
  
  <p>onShowCustomView is called in fullscreen mode. 
  Now the issue is how do i force the video to play in full screen mode when i have no control over the site.</p>