Android 4.4.2 - Youtube webview plays only the sound of the video -


i'm writing application , in activity there webview youtube video or channel. worked until upgraded phone android 4.4.2 kitkat. plays sound of video. webview:

 webview web_video = (webview) findviewbyid(r.id.web_video);  websettings websettings = web_video.getsettings();  websettings.setjavascriptenabled(true);  web_video.setwebviewclient(new callback());  web_video.setwebchromeclient(new webchromeclient() {       @override       public void onprogresschanged(webview view, int newprogress) {           super.onprogresschanged(view, newprogress);           if(newprogress==100){                loading.dismiss();           }       }  });  web_video.loadurl("http://www.youtube.com/watch?v=rc0ayg9jj9i"); 

anyone know problem?

please check notes in google developer page changed webview behaviour. suspect custom url handling causing problem.

the webview implementation changed in 4.4 webkit base chrome base.

http://developer.android.com/guide/webapps/migrating.html#urls


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -