Android 4.3 WebView will not load url with mp4 -
i trying load webpage has mp4 video on it. displays blank screen android 4.3 (jellybean) works versions after that. idea why is?
below code
public class videosample extends actionbaractivity { private webview mwebviewplayer; private string msamplemp4 = "http://techslides.com/demos/sample-videos/small.mp4"; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_lime_light); mwebviewplayer = (webview) findviewbyid(r.id.limewebview); mwebviewplayer.getsettings().setjavascriptenabled(true); mwebviewplayer.getsettings().setloadwithoverviewmode(true); try { mwebviewplayer.loadurl(msamplemp4); } catch (exception e) { e.printstacktrace(); } } }
i not getting errors either. have searched teh forum similar problem im not having luck.
what if use setwebviewclient(new webviewclient()); , setpluginsenabled(true); webview?
Comments
Post a Comment