title: Android Kitkat Webview Plays Only the Sound of the Video
body: <p>Before you downgrade I know there are similar questions related to this topic when you google it. Even it had been answered for several times here in Stackoverflow. </p>
  
  <p>Yet although I read all of those topics none of them solved my problem. My code works great for Jelly Bean, lollipop and marshmallow variations. Only for kitkat it is impossible to play a video via webview. For example on Youtube you can hear the audio but you can't see the video at all. <em>This is also happening in vimeo.</em><a href="http://i.stack.imgur.com/hQE1A.jpg" rel="nofollow">You can see in this screenshot from emulator. I can actually listen the audio but cannot see the video.</a></p>
  
  <p>I know with 4.4.4 Webview started using chromium. I know I should add this: <code>mWebView.setWebChromeClient(new WebChromeClient(){});</code> Also I should add <code>android:hardwareAccelerated="false"</code> to my manifest file. However when accelaration is false video never loads. If I add <code>android:hardwareAccelerated="true"</code> This time audio comes but video doesn't appear. </p>
  
  <p>At last I am still unable to play videos. If you could help me with this I will very much appreciate it. Thanks in advance.</p>
  
  <p><strong>If it helps these are some of the error logs:</strong></p>
  
  <pre><code>E/chromium: [ERROR:gles2_cmd_decoder.cc(5942)] [.Compositor-Onscreen-0xb8bb47f8]GL ERROR :GL_INVALID_OPERATION : glUseProgram: program not linked
  
  E/chromium: [ERROR:gles2_cmd_decoder.cc(5718)] [.Compositor-Onscreen-0xb8bb47f8]GL ERROR :GL_INVALID_OPERATION : glUniformMatrix4fv: wrong uniform function for type
  </code></pre>