You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
I need to get .mp4 url of a Vimeo video, I'm using PlayerKit sdk in iOS, we have a pro Vimeo account, I'm using video request endpoint of VimeoNetworking sdk, endpoint returns me a VIMVideo object but the "Files" field always being nil.
Here is my code:
let appConfiguration = AppConfiguration( clientIdentifier: "myIdentifier", clientSecret: "mySecret", scopes: [.Public, .Private, .Interact], keychainService: "")
let vimeoClient = VimeoClient(appConfiguration: appConfiguration, configureSessionManagerBlock: nil)
let authenticationController = AuthenticationController(client: vimeoClient, appConfiguration: appConfiguration, configureSessionManagerBlock: nil)
authenticationController.accessToken(token: "myAccessToken") { result in
switch result
{
case .success(let account):
print("authenticated successfully: \(account)")
let videoRequest = Request<VIMVideo>(path: "/videos/534313082")
_ = vimeoClient.request(videoRequest) { (result) in
switch result {
case .success(let response):
let video: VIMVideo = response.model
print("retrieved video: \(video)")
case .failure(let error):
print("error retrieving video: \(error)")
}
}
case .failure(let error):
print("failure authenticating: \(error)")
}
}