title: Hardware accelerated Android Webview crashes on multiple devices + HTML5 video issue
body: <p>I'm using WebViews in my apps, and many users reported some issues. It appears that most of them seem to happen on 4.1.1, not before.</p>
  
  <p><strong>The configuration:</strong></p>
  
  <ul>
  <li>A Webview, inside a HW accelerated activity.</li>
  <li>JS enabled, Plugins enabled, File access enabled, DOM storage enabled.</li>
  <li>Custom WebChromeClient and WebViewClient.</li>
  <li>Webview has a transparent background (0X00000000) but removing it seems to have no good improvement.</li>
  </ul>
  
  <p><strong>The problem:</strong></p>
  
  <ul>
  <li>Random black outs when showing some URLs: black out meaning, the activity just dies, there is no JAVA exception.</li>
  <li>Usually, logs report a SIGSEGV, in glDrawArrays(), but could also be somewhere else (not enough information from users).</li>
  </ul>
  
  <p><strong>A workaround?</strong></p>
  
  <p>Simply disable the HW acceleration on the webview! Yeah, no more black out, that's right... But then (even if we consider this workaround is just so so, as the display performance decreases quite a lot):</p>
  
  <p><strong>A new problem:</strong></p>
  
  <ul>
  <li>Without HW acceleration, HTML5 videos (youtube) are not working: Sound starts, but video doesn't.</li>
  <li>A solution could be to catch a  playback starting event, to make the video play in a videoView, the same way we can do for fullscreen playback (using onShowCustomView, see <a href="https://stackoverflow.com/questions/15768837/playing-html5-video-on-fullscreen-in-android-webview">Playing HTML5 video on fullscreen in android webview</a>). Nevertheless, I'm currently not able to catch such an event. Please note that I'm not owner of the HTML pages, and the HTML code cannot be changed to append some kind of Javascript code in it.</li>
  </ul>
  
  <p><strong>Questions:</strong></p>
  
  <ul>
  <li>Does anyone has the same kind of crash, using HW acceleration + webview, on many devices? If so, how do you solve that?</li>
  <li>About the  workaround, deos anyone know how to solve this problem? Would be great to do like on IOS: clicking on the  does not try to play the video inline, but instead it just opens the video application.</li>
  </ul>
  
  <p>Thanks for reading!</p>