PlayerKit icon indicating copy to clipboard operation
PlayerKit copied to clipboard

Extended example for playing w/ Vimeo Video URL?

Open jyaunches opened this issue 8 years ago • 2 comments

Hello!

I'm successfully using the Vimeo API to retrieve information about my Business account videos.

I'm trying to incorporate PlayerKit into our iOS application and am using your example code to just do the very baseline.

I'm receiving an error back of '-999'.

screen shot 2018-02-22 at 3 24 33 pm

Not sure if I'm using the right URL. I'm pulling it out of the returned JSON from a GET request for that video.

screen shot 2018-02-22 at 3 27 55 pm

Am I using the wrong URL? Are there newer examples I can reference?

jyaunches avatar Feb 22 '18 23:02 jyaunches

Interestingly... I just saw the same error when running the example project. But, it still loads the video.

screen shot 2018-02-22 at 4 33 33 pm

When I bring my vimeo URL into the example project.. I actually get a different error. And the video doesn't load!

screen shot 2018-02-22 at 4 34 25 pm

jyaunches avatar Feb 23 '18 00:02 jyaunches

Hi @jyaunches, The URL you are using is the URL of the video web page. What you're looking for is the URL of a video file. This can be retrieved by requesting the video object from the API (https://developer.vimeo.com/api/playground/me/videos/) and using the link URL in one of the objects in the files array. The files array will only be present if you have a Pro, Business, or Live account.

ghking avatar Feb 26 '18 16:02 ghking