android - Vimeo iframe in webview -


how possible view video vimeo embed code in webview in android? hear audio video stays black.

                wb.getsettings().setjavascriptenabled(true);             wb.setwebviewclient(new webviewclient());             wb.setwebchromeclient(new webchromeclient());             wb.loaddatawithbaseurl(wb.geturl(),                     "<iframe src=\"http://player.vimeo.com/video/**********?title=0&amp;byline=0&amp;portrait=0\" width=\"500\" height=\"281\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>",                     "text/html",                     "utf-8",                     null); 

way late party here, didnt use did , works me.

webview.loadurl("http://player.vimeo.com/video/" +"insert video id here"+ "?player_id=player&autoplay=1&title=0&byline=0&portrait=0&api=1&maxheight=680&maxwidth=1000"); 

and change width , height according needs


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -