Closed kosswong closed 3 years ago
thanks!
it is not working
it is not working
Did you try another youtube link? Sometimes you may need to remove the 720P standard for your AVPlayerViewController.
NSURL *streamURL = streamURLs[XCDYouTubeVideoQualityHTTPLiveStreaming] ?: streamURLs[@(XCDYouTubeVideoQualityHD720)] ?: streamURLs[@(XCDYouTubeVideoQualityMedium360)] ?: streamURLs[@(XCDYouTubeVideoQualitySmall240)];
to
NSURL *streamURL = streamURLs[XCDYouTubeVideoQualityHTTPLiveStreaming] ?: streamURLs[@(XCDYouTubeVideoQualityMedium360)] ?: streamURLs[@(XCDYouTubeVideoQualitySmall240)];
Or, could you paste the error message here?
Take reference to https://github.com/0xced/XCDYouTubeKit/issues/548
As titled, one of the solution