0xced / XCDYouTubeKit

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

Parse Video Error!!! #465

Closed oTranAnhMinh closed 4 years ago

oTranAnhMinh commented 4 years ago

Hello,

Currently, some videos are limited by country. Please help to check it.

Domain: XCDYouTubeVideoErrorDomain Code: -2 User Info: { AllowedCountries = "{(\n \"United States\"\n)}"; NSLocalizedDescription = "The uploader has not made this video available in your country."; NSURL = "https://www.youtube.com/get_video_info?eurl=https://youtube.googleapis.com/v/jOAoQO9UOHs&hl=en&sts=&video_id=jOAoQO9UOHs"; }

Thank you,

SoneeJohn commented 4 years ago

Are you in the United States?

oTranAnhMinh commented 4 years ago

Are you in the United States?

No. I live in Vietnam. I have selected some VEVO videos with the region in the United States and occasionally receive this error.

SoneeJohn commented 4 years ago

Interesting. Well based on the error message that is why you're getting that error. What I suggest is using a VPN or proxy to change your IP to a US one and try again.

I am unable to play that video on YouTube's website as well because I am not in the US but once I use a VPN I can play the video.