PlayerKit icon indicating copy to clipboard operation
PlayerKit copied to clipboard

Video not playing: https://vimeo.com/30371570

Open hiteshborse12 opened this issue 5 years ago • 4 comments

Run an example demo and change the video URL to "https://vimeo.com/30371570". Getting error :🚫 Optional(Error Domain=NSOSStatusErrorDomain Code=-12847 "(null)")

hiteshborse12 avatar May 08 '20 17:05 hiteshborse12

this links to a webpage not to a video .mp4 or of other formats

vittorionapoli avatar May 19 '20 05:05 vittorionapoli

As stated above, https://vimeo.com/{video_id} is not the resource link. I you make a GET to https://api.vimeo.com/videos/{video_id}, there is a node named "files" in the response. Thats an array with all the available versions of your video. Each object of the array contains a "link" to the video resource

umwelt avatar Aug 04 '20 22:08 umwelt

@umwelt , seems files option is not available in APIs anymore and requires special payed membership. Honestly I would expect for Vimeo / PlayerKit to have default feature to play Vimeo videos, hopefully it will be added in the future.

References: https://vimeo.zendesk.com/hc/en-us/articles/224823567-Direct-links-to-video-files

jailreaktester avatar Aug 23 '20 07:08 jailreaktester

As stated above, https://vimeo.com/{video_id} is not the resource link. I you make a GET to https://api.vimeo.com/videos/{video_id}, there is a node named "files" in the response. Thats an array with all the available versions of your video. Each object of the array contains a "link" to the video resource

Private videos links are not available using this api.I have tried making api calls for private videos and couldn't find any proper documentation, about what to do in this case

Jef-in avatar Nov 25 '20 06:11 Jef-in