How to play vimeo videos within my app?
Asked Answered
O

2

8

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)));
Optometry answered 16/11, 2012 at 9:30 Comment(1)
did you find any solution for this? i want to play vimeo video in webiew but all it is showing is white screenOrton
D
2

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 .

Dissuasion answered 16/11, 2012 at 9:41 Comment(2)
looks like this function is deacticvated by vimeo. well then you can also download the flv files and play themDissuasion
i have to get videos from channels and play them. I think it's not possible to download flv and play..Optometry
P
0

The alternative option is to get a Pro account and then you can load the videos directly in the native player.

See this answer for details: https://mcmap.net/q/1473335/-android-app-private-viemo-videos-not-playing

APIs for Vimeo are found here: https://developer.vimeo.com/api and here https://developer.vimeo.com/api/endpoints

Putto answered 27/10, 2015 at 19:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.