Search code examples
iosvimeovimeo-apivimeo-playervimeo-ios

Integrating Vimeo API into my private app


My requirement is very simple. I am an Vimeo Pro user and I have few private videos in my account and I just wanna play it in my private app.

How to achieve this.. Is it really I should to go thru all Oauth authentication process else by simply using accessToken I can access my videos. ?

I just want exactly how bright cove works they provide a token and video Id for video which I uploaded and using this I can play video in my app. Is it this thing not possible with vimeo.

Awaiting for suggestions


Solution

  • You can use the VIMNetworking library. This is the official Vimeo iOS SDK. Check out the Lightweight Use section for info on providing your own auth token.

    Use the library to request the JSON for your video objects, grab the playback URLs from the "files" array on the video object JSON, and pass those to an AVPlayer instance.

    Cool?

    Side note: we (Vimeo) are working on a brand new 100% Swift replacement for VIMNetworking. Look for that in the coming weeks.