Skip to content

Commit

Permalink
Merge pull request #1 from jatin19121990/hotfix/Can-Not-Play-video-an…
Browse files Browse the repository at this point in the history
…y-more---XCDYouTubeVideoErrorDomain-Code=-3-0xced#525

Can Not Play video any more - XCDYouTubeVideoErrorDomain Code=-3 0xced#525
  • Loading branch information
jatin19121990 authored May 21, 2021
2 parents 23f7659 + 8389cd3 commit 31e72e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCDYouTubeKit/XCDYouTubeVideoOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ - (void) startNextRequest
NSString *eventLabel = [self.eventLabels objectAtIndex:0];
[self.eventLabels removeObjectAtIndex:0];

NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" };
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1" };
NSString *queryString = XCDQueryStringWithDictionary(query);
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString:queryString]];
[self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];
Expand Down

0 comments on commit 31e72e4

Please sign in to comment.