0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

XCDYouTubeVideoErrorDomain #522

Closed drjamescoleman closed 3 years ago

drjamescoleman commented 3 years ago

Hello, I have been using previous versions of XCDyoutubekit but recently noticed that it no longer works in my IOS project. I have installed the latest pod XCDYouTubeKit2.3.3 and I have tried to use the code below to play a video in my project.

  YoutubeLink = @"DZUU-xL008M";

XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:YoutubeLink];

[self presentMoviePlayerViewControllerAnimated:videoPlayerViewController];

The youtube video does not play, and I keep getting the following error in the console.

2021-03-07 14:10:18.824847+0000 Chest X-rays[72491:1876150] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000025fc240> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-03-07 14:10:18.941550+0000 Chest X-rays[72491:1876156] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed
2021-03-07 14:10:20.793800+0000 Chest X-rays[72491:1876170] [XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code:   -2
User Info: {
    NSURL = "https://www.youtube.com/get_video_info?el=detailpage&hl=en&ps=default&video_id=DZUU-xL008M";
}

I have been looking over different forums to find a fix for this but I have not been able to easily find one. Is there a simple fix for this error ?

Thanks for your time and expert opinion. james