Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
That method wasn't called when I've tried to open youtube video.
Sound is playing fine but it shows black screen instead of video

Original comment by [email protected] on 3 Jul 2012 at 9:29

from html5webview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from html5webview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I am facing the exact same issue i am trying to load a url which has youtube 
video embedded using iframe. I have added hardwareacceleration as true in 
manifest file.
I am only able to hear sound and i see a black screen.

The onShowCustomView and getVideoLoadingProgressView do not get called
and this is what i see in the logcat when the video is loaded.

07-05 18:45:29.790: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:29.800: D/MediaPlayer(1143): Couldn't open file on client side, 
trying server side
07-05 18:45:30.079: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:30.079: D/ShaderProgram(1143): couldn't load the vertex shader!
07-05 18:45:30.079: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:30.079: D/ShaderProgram(1143): couldn't load the vertex shader!
07-05 18:45:30.079: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:30.079: D/ShaderProgram(1143): couldn't load the vertex shader!
07-05 18:45:30.079: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:30.079: D/ShaderProgram(1143): couldn't load the vertex shader!
07-05 18:45:30.079: E/libEGL(1143): call to OpenGL ES API with no current 
context (logged once per thread)
07-05 18:45:30.079: D/ShaderProgram(1143): couldn't load the vertex shader!

NOTE: This works perfectly fine on android gingerbread
Can anyone help me out on this?

I also tried the new method onShowCustomView(View view, int 
requestedOrientation, WebChromeClient.CustomViewCallback callback)
as suggested in the first comment but it is not working

Original comment by [email protected] on 5 Jul 2012 at 1:37

from html5webview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Write this code in onBackPressed() or in onPause()

Class.forName("com.***.HTML5WebView").getMethod("onPause", (Class[]) 
null).invoke(html5WebView, (Object[]) null);

It worked for me in 4.2

Original comment by [email protected] on 8 Jan 2013 at 12:49

from html5webview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I think adding  android:hardwareAccelerate="true" to manifest file will solve 
most of your problems. For <iframe>, simple solution is to change 
shouldOverrideUrlLoading() to always return false.

Original comment by [email protected] on 4 Feb 2013 at 1:10

  • Changed state: Accepted

from html5webview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
You can try to set an user agent to the webView it works for me on ICS like 
this:
String ua = "Mozilla/5.0 (Android; Tablet; rv:20.0) Gecko/20.0 Firefox/20.0";

WebSettings s = getSettings();
s.setUserAgentString(ua);

if it don't work look at this link for other user agents:
http://android-er.blogspot.com/2013/05/set-user-agent-string-of-webview.html

Good luck

Original comment by [email protected] on 31 Oct 2013 at 10:22

from html5webview.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.