Youtube and Vimeo Videos support in Android with Vitamio -
in app trying play vimeo video using videoview seems out of scope right , therefore have decided first try , youtube video work.
i added vitamio plugin , seems work fine mp4 videos uploaded on site on both 3g , wifi connection not work when provide rstp link of youtube videoview , try watch on wifi.
do have use technique make youtube video work on both wifi , 3g? need special url it?
if has suggestions on how can use vimeo video vitamio great.
here code using:
string srcpath = "rtsp://v4.cache7.c.youtube.com/cjyleny73wialqky7thxrrjpyrmydsanfeijbxytz29vz2xlsarsbxdhdgnoykjr78wv1zh5tgw=/0/0/0/video.3gp"; //this doesnot work on wifi string srcpath = "http://myurl.com/videoname.mp4"; //this works on 3g connection failes on wifi try { videoview myvideoview = (videoview)findviewbyid(r.id.myvideoview); myvideoview.setvideouri(uri.parse(srcpath)); myvideoview.setmediacontroller(new mediacontroller(this)); myvideoview.requestfocus(); myvideoview.start(); } catch (exception e) { log.d("custom", "unable play video"); }
sorry above post.....
implemented vimeo video play functionality in android app using web view...here link .if find suitable.this working perfectly..
https://github.com/bilthon/vimeotest..
and work on devices make sure....to add hardwareaccelaration=true.in mnifest file.....
Comments
Post a Comment