XCDYouTubeKit icon indicating copy to clipboard operation
XCDYouTubeKit copied to clipboard

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

Open two4teacompany opened this issue 3 years ago • 10 comments

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.

two4teacompany avatar Apr 02 '21 10:04 two4teacompany

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";
}

ekincelik avatar Apr 04 '21 00:04 ekincelik

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: { }

sixty8 avatar Apr 09 '21 12:04 sixty8

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.

s3ton avatar Apr 13 '21 19:04 s3ton

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 avatar Apr 14 '21 07:04 Praveen-Balpande

@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

Praveen-Balpande avatar Apr 20 '21 15:04 Praveen-Balpande

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

biox86 avatar Apr 29 '21 11:04 biox86

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

ekincelik avatar May 02 '21 15:05 ekincelik

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...

someziggyman avatar May 02 '21 17:05 someziggyman

@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

Praveen-Balpande avatar May 04 '21 08:05 Praveen-Balpande

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

devbest555 avatar Jun 22 '21 07:06 devbest555