Comments (6)
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.
[deleted comment]
from html5webview.
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.
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.
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.
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)
- Android 3.2 fail HOT 2
- Not able to play live FM radio link
- Code not working on Google Tv device HOT 1
- app crash when rotate the screen HOT 1
- Video work only on first play HOT 1
- Could html5webview support video embed, not fullscreen? HOT 1
- Rotating video alerts "This video cannot be played" or restarts HOT 2
- crash on coming back to full screen view via recent task button HOT 3
- Not working on 4.0 and above HOT 1
- Continually resizes during play
- Using in XML resources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5webview.