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!

解决方案 »

  1.   

    android webview默认是不支持HTML5的,
      

  2.   

    好像是Android 4.0自带的浏览器上面支持html5的。
      

  3.   

    怎么会不支持Html5呢,只是支持的不是很好,没有ios那么强大
      

  4.   

    有可能是你的视频格式,就连html5的video标签都不支持,这个问题,我和同事也讨论过。
      

  5.   

    lz   可以实现在线播放的
    不过你要调用系统的播放器才可以,你自己看吧  我也被这个整了好久
    如下代码:
    //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);
            }
    }
      

  6.   

    额  忘记了还有个问题  用video做出来的html貌似样式怎么改 有谁了解的
      

  7.   

    我也在做video标签在手机浏览器上显示,我的安卓版本是2.3.5,用的是系统默认的浏览器,播放是没问题的,但是不能自动播放,autoplay="autoplay"没起作用,也很头疼
      

  8.   

    2.3.5的版本都支持video标签吗我的不能播放
      

  9.   

    大哥,csdn上有木有提供源码实例下载的资源啊!求分享连接下载
      

  10.   

    大哥。我用WebView没有做任何的处理,在WebView中是白的
      

  11.   

    请问在android4.0里面用phonegap封装video标签,播放视频时直接全屏,想不全屏播放,应该如何修改啊?
      

  12.   

    autoplay 在安卓上不管事,不能自动播放像 奇异,乐视 的视频播放的时候就可以自动播放,他们是怎么弄的?
      

  13.   

    你好,我最近也在研究phonegap封装html5的部分。
    我想问下,你的意思是video标签通过phonegap封装后可以播放是吧?只是有些问题而已,是不是?你自己有做过实例是吧?
    非常感谢!
      

  14.   

    你好,我最近也在研究这块的内容。
    能请教一下,您也通过phonegap封装后播放video标签是吧?一直不能播放吗?现在还是有问题是吧?
    非常感谢。
      

  15.   

    你好,我看了一篇文章,只是去年的,不知道现在是不是依旧像文章中说的:Android对video元素支持很有限。比如video的controls、autoplay、 preload等都没支持。
    http://www.eoeandroid.com/forum.php?mod=viewthread&tid=173427  我是现在做一些html5封装的调研工作,所以想另外请教你一下,用phonegap封装过其他的html5的特性吗?比如是canvas,audio,离线缓存,本地存储,地理定位等功能吗?可以封装吗?android支持吗?非常感谢您!