Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play vimeo videos within my app?

I want to play vimeo videos in my application. I am able to get the Videos from the channel and play in the browser or in the vimeo application, but i want the video to be played in my application. Is there any API for this like open youtube. Please help me in doing this.

for now i am using this to play video in the vimeo app or in the browser.

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://player.vimeo.com/video/"+vid_id)));
like image 772
wolverine Avatar asked Nov 16 '12 09:11

wolverine


People also ask

Why can't I play a Vimeo video?

Browser-related causesBrowser cache that has not been cleared and browser that is old and outdated. If your browser is not updated and you have an older browser you could face problems watching Vimeo videos. 1. Vimeo needs browsers that can decode videos in a player that has HTML5 functionality.


1 Answers

As far as I know all you need is a webview.

Url would be something like:

http://player.vimeo.com/video/<VIDEO_ID_GOES_HERE>?player_id=player&title=0&byline=0&portrait=0&autoplay=1&api=1

Edit: Vimeo offers a html5 player, see here: http://vimeo.com/blog/post:268 this way you should be able to read the filename and play this in your application.

Edit 2: html5 is not available anylonger .

like image 169
Goot Avatar answered Sep 27 '22 20:09

Goot