0xced / XCDYouTubeKit

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

Fixed user no found issue #546

Closed kosswong closed 3 years ago

kosswong commented 3 years ago

As titled, one of the solution

hoabv commented 3 years ago

thanks!

edcastparesh commented 3 years ago

it is not working

kosswong commented 3 years ago

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?

kosswong commented 3 years ago

Take reference to https://github.com/0xced/XCDYouTubeKit/issues/548