Ayyappa
Ayyappa

Reputation: 1984

Is it possible to get streaming url with Vimeo API?

I have my own video player with in my app and want to play in it if I can get a video url. Is it possible with Vimeo API?

In my app I will allow users to search for videos and play it on my media player on mobile.

Upvotes: 2

Views: 10344

Answers (2)

Scorb
Scorb

Reputation: 1900

If your videos are set to public you can hit the endpoint...

https://player.vimeo.com/video/{your_video_id}/config.

This will return a json. In the nested field request > files > progressive, you will have objects that contains streaming urls.

There is also dash and hls streaming formats under the files node, but not sure if all players will support those formats.

Upvotes: 0

Dashron
Dashron

Reputation: 3998

API requests authenticated as a PRO user will have access to that users video files. This includes the transcoded files and an HLS link. You can find these urls in the video representation, returned by many different api calls. Specifically under the files key, you will find an array containing the url and additional metadata. Make sure to pick your video based on the resolution, and not the quality, because the quality can have duplicate

The most relevant api call is GET https://api.vimeo.com/me/videos, because this will return a list of all videos owned by the authenticated user (which happen to be the only videos with available video files).

Video files are not available for basic or Plus users, and are not available for users beyond the one making the request. For those videos you should use the embed codes we provide in the API request (under the key response.embed.html, or through oEmbed.

Upvotes: 8

Related Questions