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

Unable to play youtube video in iOS app #531

Open
dipubright opened this issue May 25, 2021 · 10 comments
Open

Unable to play youtube video in iOS app #531

dipubright opened this issue May 25, 2021 · 10 comments

Comments

@dipubright
Copy link

Getting fail to decode response with below logs
[XCDYouTubeKit] Failed to decode response from https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=-VmaT7ChiYs (response.textEncodingName = utf-8, data.length = 0)
2021-05-25 13:09:58.729299+0530 HealthKart[6512:163267] [XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -3.)
Domain: XCDYouTubeVideoErrorDomain
Code: -3

Version (2.15.2)

@ryanfrancesconi
Copy link

duplicate of #530
duplicate of #525

@zeqinjie
Copy link

+1

@hArshpb11
Copy link

Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix.
Replac line number 152,361 with new one that i have listedout at bottom.

File : XCDYouTubeVideoOperation

line: 152
line: 361

Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @1 };

Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };

edcastparesh added a commit to edcast/XCDYouTubeKit that referenced this issue May 28, 2021
edcastparesh added a commit to edcast/XCDYouTubeKit that referenced this issue May 28, 2021
sixty8 added a commit to sixty8/XCDYouTubeKit that referenced this issue Jun 2, 2021
andre-arsenault added a commit to talisman-games/XCDYouTubeKit that referenced this issue Jun 16, 2021
@Tsquared86
Copy link

HI is anyone having problems with this again? I did these changes about a month ago but as of lately no longer work.

@ryanfrancesconi
Copy link

@Tsquared86 yes, it's broken again for me as well

@NikKovIos
Copy link

Yep

@marcoswmv
Copy link

Yes. Did anyone find a solution for it?

@cironapo
Copy link

cironapo commented Jul 10, 2021

I replace the line 152 in "XCDYouTubeVideoOperation.m" with
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1" };

and le line 154 in "XCDYouTubeVideoOperation.m" with
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2Fonz2k4zoLjQ&c=TVHTML5&cver=6.20180913&" stringByAppendingString:queryString]];

I followed this link
https://stackoverflow.com/questions/67615278/get-video-info-youtube-endpoint-suddenly-returning-404-not-found

@ryanfrancesconi
Copy link

There is a PR here that addresses it:
#539

@haroonakram
Copy link

I am having the same issue... does any one found any solution or can suggest any other option?

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

9 participants