0xced / XCDYouTubeKit

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

XCDYouTubeRequestTypeGetVideoInfo is resulting in a 404 response #543

Open jdhamilton99 opened 3 years ago

jdhamilton99 commented 3 years ago

NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1", @"eurl": [@"https://youtube.googleapis.com/v/" stringByAppendingString: self.videoIdentifier], @"c": @"TVHTML5", @"cver": @"6.20180913" };

    NSString *queryString = XCDQueryStringWithDictionary(query);
    NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString: queryString]];
    [self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];