Skip to content

Instantly share code, notes, and snippets.

@bartjacobs
Created July 4, 2019 04:16
Show Gist options
  • Save bartjacobs/c8145327ef5d22ef1637c038aa01ab0d to your computer and use it in GitHub Desktop.
Save bartjacobs/c8145327ef5d22ef1637c038aa01ab0d to your computer and use it in GitHub Desktop.
// Fetch Video
playbackService.findVideo(withVideoID: id, parameters: nil, completion: { [weak self] (video, _, error) in
if let error = error {
// Handle Error
} else if let video = video {
// Use Video
}
})
// The `playbackService` object is an instance of the `BCOVPlaybackService` class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment