Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with some (many) videos: XCDYouTubeVideoErrorDomain Code=-2 #523

Open
two4teacompany opened this issue Apr 2, 2021 · 10 comments
Open

Comments

@two4teacompany
Copy link

I'm on the latest version of the pod (v2.15.2), but on many videos actually I get the following error: "XCDYouTubeVideoErrorDomain Code=-2". Is there any solution for this, I have not been able to find anything recent enough on the forum.

Thanks.

@ekincelik
Copy link

ekincelik commented Apr 4, 2021

I have the same problem. Could you please take a look ? @SoneeJohn

Domain: XCDYouTubeVideoErrorDomain
Code:   -2
User Info: {
    NSLocalizedDescription = "Video unavailable";
    NSURL = "https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=6swmTBVI83k";
}
Domain: XCDYouTubeVideoErrorDomain
Code:   -2
User Info: {
    NSLocalizedDescription = "Video unavailable";
    NSURL = "https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=cii6ruuycQA";
}

@sixty8
Copy link
Contributor

sixty8 commented Apr 9, 2021

Any news? Is the XCDYouTubeKit obsolete?

[XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code: -2
User Info: {
}

@s3ton
Copy link

s3ton commented Apr 13, 2021

Any news? Is the XCDYouTubeKit obsolete?

[XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code: -2
User Info: {
}

XCDYouTubeKit was working up until few days ago, and I'm sure this will be fixed soon.
This is something related to YouTube making changes to cause issues to XCDYouTubeKit and similar code.

@Praveen-Balpande
Copy link

I have the same issue, installed latest version 2.15.2 by Cococpods.

Domain: XCDYouTubeVideoErrorDomain
Code: -2

Below Url is not working in Norway country
https://www.youtube.com/watch?v=J6R4u8jSkh4

But in India it is working fine on our devices

@Praveen-Balpande
Copy link

@SoneeJohn Can you please look in to the issue which we are facing actually we are in app release phase and have to fix or find out some work around about this issue. Please check it.

Domain: XCDYouTubeVideoErrorDomain
Code: -2

Below Url is not working in Norway country
https://www.youtube.com/watch?v=J6R4u8jSkh4

But in India it is working fine on our devices

@biox86
Copy link

biox86 commented Apr 29, 2021

No response in an entire month for a critical bug like this... it feels like this repo is dead unfortunately.

@ekincelik
Copy link

hi everyone,

as I can understand, app is not working because consent.youtube.com is coming up everytime, it tries to retrieve youtube content. I created a branch which is working only on device, not on simulator. But you need to login with your gmail address at the first time you open the app.

https://github.com/ekincelik/XCDYouTubeKit/tree/fix/youtube-consent-issue

@someziggyman
Copy link

someziggyman commented May 2, 2021

Here's another test link that does not seem to work with Dutch VPN enabled:
https://www.youtube.com/watch?v=zT_zEAVFrNo

and it looks like @ekincelik is right about some sort of a ""pop up" road blocking the process.

[XCDYouTubeKit] Video operation finished with error: Video unavailable
Domain: XCDYouTubeVideoErrorDomain
Code: -2
User Info: {
NSLocalizedDescription = "Video unavailable";
NSURL = "https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=zT_zEAVFrNo";
}
Maybe downloading that get_video_info file might bee helpful...

@Praveen-Balpande
Copy link

@ekincelik Still it is not working with some urls and giving me error with reason string "Video unavailable". Please check it.

Domain: XCDYouTubeVideoErrorDomain
Code: -2

Below Url is not working
https://www.youtube.com/watch?v=J6R4u8jSkh4

@devbest555
Copy link

live videoIDs : hartiIFC1s4, azl07ua79pa
can everybody test these videos in your side using XDCYouTubeVideoKit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants