I used webview load Html5 online play page, the page is displayed correctly, but click on the play when he has been stuck in this "Play buffer pages" in my sony 4.0 and motor 3.2 ; pad on both tried the same result.
question: android webview support html5 video tag you, there is no one in the android platform to achieve html5 online play?
------ Solution ------------------------------------ --------
android webview default is not supported by the HTML5,
------ Solution ------------------- -------------------------
like Android 4.0 comes with a browser supports html5 the above.
------ Solution ---------------------------------------- ----
how Html5 will not support it, but the support is not very good, no less powerful ios
------ Solution ------------------------------------ --------
possible that your video formats, even the html5 video tag is not supported by this problem, my colleagues and I have discussed.
------ Solution ---------------------------------------- ----
lz can play online
But you have to call the system of player can, you can see for yourself I have been for a long time this whole
the following code:
/ / html
/ / java
JavaScriptInterface jsInterface = new JavaScriptInterface (this);
webView.getSettings (). setJavaScriptEnabled (true);
webView.addJavascriptInterface (jsInterface, "JSInterface");
public class JavaScriptInterface {
private Activity activity;
public JavaScriptInterface (Activity activiy) {
this.activity = activiy;
}
public void startVideo (String videoAddress) {
/ / call the player (see here how to write your own)
Bundle bundle = new Bundle ();
bundle.putString ("path", address);
MyIntent.startIntent (WebViewActivity.this, MyIntent.VIDEO, bundle);
}
}
------ Solution ----------------------------------- ---------
can
------ reference -------------------------- -------------
log log:
06-13 09:41:26.990: E / libEGL (1217): call to OpenGL ES API with no current context ; (logged once per thread)
06-13 09:41:26.990: D / ShaderProgram (1217): couldn't load the vertex shader!
06-13 09:41:26.990: E / libEGL (1217): call to OpenGL ES API with no current context (logged once per thread) < br /> 06-13 09:41:26.990: D / ShaderProgram (1217): couldn't load the vertex shader!
06-13 09:41:26.990: E / libEGL (1217): call to OpenGL ES API with no current context (logged once per thread)
06-13 09:41: 26.990: D / ShaderProgram (1217): couldn't load the vertex shader!
06-13 09:41:26.990: E / libEGL (1217): call to OpenGL ES API with no current context (logged once per thread)
06-13 09:41:26.990: D / ShaderProgram (1217): couldn't load the vertex shader!
06-13 09:41:26.990: E / libEGL (1217): call to OpenGL ES API with ; no current context (logged once per thread)
06-13 09:41:26.990: D / ShaderProgram (1217): couldn't load the vertex ; shader!
------ reference --------------------------------- ------
mark rookie expressed concern
------ reference ------------------------ ---------------
I tried in 4.0, the player has been in a buffering state
------ reference ---------------------- -----------------
video format is mp4, so it should not form the question, and you get the results discussed what
------ reference ---------------- -----------------------
amount forget there is a problem with the video html seemingly made out of style how change anyone know
------ reference --------------------------------- ------
4.1
------ reference ------------------------------ ---------
I also do video label displayed on the browser on the phone, my Android version is 2.3.5, using the default browser, the player is no problem, but not automatically play, autoplay = "autoplay" did not work, but also a headache
------ reference ----------------------- ----------------
2.3.5 versions do support the video tag. . . I can not play
------ reference ------------------------------------ ---
brother, csdn on wood have the resources to provide source code examples download ah! Seeking to share connection to download
------ reference ------------------------------------ ---
wooden Me hindsight
------ reference -------------------------- -------------
this specific how to get, you can write more points you
------ reference -------------------------- -------------
brother. . . . I did not do any processing WebView in a WebView is white
------ reference ------------------------- --------------
demand should be no problem, live not, you can use the player
------ reference ---------- -----------------------------
phone can, the development board does not work? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
Does anyone know
------ reference --------------------------------- ------
------ reference ------------------------------------ ---
Will android4.0 inside video with phonegap package labels, full-screen video playback directly, does not want to play in full screen, it should be how to modify ah?
------ reference --------------------------------------- < br> autoplay in Andrews on no matter what, you can not automatically play
like a strange, music video playback depending on when you can automatically play, how they get?
没有评论:
发表评论