HCVimeoVideoExtractor.fetchVideoURLFrom(url: url, completion: { ( video:HCVimeoVideo?, error:Error?) -> Void in
if let err = error {
print(“Error = (err.localizedDescription)”)
return
}
guard let vid = video else {
print("Invalid video object")
return
}
print("Title = (vid.title), url = (vid.videoURL), thumbnail = (vid.thumbnailURL)")
if let videoURL = vid.videoURL[.quality1080p] {
self.vimeoVideoURL = videoURL
self.checkBagDownloadStatus()
DispatchQueue.main.async {
if isStartTrail
{
self.playerViewSetup(videoURL)
}
any one can suggest me another way to Vimeo video play in my avplayer in swift 5