开发者

Web view Video streaming in android?

开发者 https://www.devze.com 2023-02-13 21:43 出处:网络
I use the following code to play the Video from remote server, WebView webView = (WebView) findViewById(R.id.webview);

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

精彩评论

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