开发者

Web view Video streaming in android?

I use the following code to play the Video from remote server,

WebView webView = (WebView) findViewById(R.id.webview);
webVi开发者_运维问答ew.loadUrl("http://commonsware.com/misc/test2.3gp"); 

its not playing the Video, while if i put the link in browser it will working fine.What mistake i made i don`t know.Even i also put internet access permission in manifest file.

Thanks.


Try this:

wv = (WebView)findViewById(R.id.webview);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setPluginsEnabled(true);
wv.loadUrl("http://commonsware.com/misc/test2.3gp");  
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜