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)
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!
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!
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!
解决方案 »
- 大家好,问个关于Android 开发Webdav客户端的问题
- 我想让Dialog中在启动一个Dialog,里面的Dialog该怎样写
- startActivityForResult() 和 onActivityResult()
- 求助,关于onDraw方法
- 解析XML遇到的异常 ExpatParser$ParseException
- android平台zxing怎么用啊??
- android appWidgetProvider 接收到android.appwidget.action.APPWIDGET_UPDATE后没有执行onUpd
- 手机加密算法
- expandablelistview子item的按钮怎么获取
- adb shell连手机上某应用的sqlite数据库,permission denied
- 【百度地图】没有为类型 MapActivity 定义方法 initMapActivity(BMapManager)
- 想把SD卡以树形结构显示要怎么做啊? 是把我下列的程序和Tree结合吗? 如果是结合要怎么做啊
不过你要调用系统的播放器才可以,你自己看吧 我也被这个整了好久
如下代码:
//html
<video autoplay="autoplay" controls="controls" id="youku-html5-player-video" onclick="playVideo('http://v.youku.com/player/getRealM3U8/vid/XNDE4NjIwOTI0/type//video.m3u8');" preload="" src="http://v.youku.com/player/getRealM3U8/vid/XNDE4NjIwOTI0/type//video.m3u8" width="100%" x-webkit-airplay="allow">
Your browser does not support the video tag.</video>
<script>
function playVideo(video){
window.JSInterface.startVideo(video);
}
</script>//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){
//调用播放器(这里看你自己怎么写了)
Bundle bundle = new Bundle();
bundle.putString("path", address);
MyIntent.startIntent(WebViewActivity.this, MyIntent.VIDEO, bundle);
}
}
我想问下,你的意思是video标签通过phonegap封装后可以播放是吧?只是有些问题而已,是不是?你自己有做过实例是吧?
非常感谢!
能请教一下,您也通过phonegap封装后播放video标签是吧?一直不能播放吗?现在还是有问题是吧?
非常感谢。
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=173427 我是现在做一些html5封装的调研工作,所以想另外请教你一下,用phonegap封装过其他的html5的特性吗?比如是canvas,audio,离线缓存,本地存储,地理定位等功能吗?可以封装吗?android支持吗?非常感谢您!