Open alexeichhorn opened 3 years ago
@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
@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
Works for me with my pull request
Works, thanks!
I had downloaded the code from alexeichhorn:fix/youtube-consent branch and added the required XCDYoutubeKit folder into project, because there is no new pod version available for this fix.
I run the project on real device and observed that https://www.youtube.com/watch?v=J6R4u8jSkh4 url gives me same error video unavailable.
Am I doing anything wrong here, how it’s working for u and not for me. Please suggest we depends on this lib and in a release phase. Please advise.
I tested your video using the demo application in the repository, which worked, and used SwiftPM to integrate the framework in my application where I haven't tested your video, but a lot of others. There's a chance this problem is region based, so maybe try to use a VPN to test some other regions. I myself tested it in Switzerland.
hi @Praveen-Balpande I used alexeichhorn:fix/youtube-consent branch too. Your video is working for me. You can check response in handleConnectionSuccessWithData method on XCDYouTubeVideoOperation.m class in order to understand what the problem is.
Hi everyone,
I am getting this error while playing video id "E_lByLdKeKY"
2021-05-13 16:39:53.974689+0530 Quizzwizz[1362:383440] [XCDYouTubeKit] Failed to decode response from https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=E_lByLdKeKY (response.textEncodingName = utf-8, data.length = 0) 2021-05-13 16:39:53.975118+0530 Quizzwizz[1362:383440] [XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -3.) Domain: XCDYouTubeVideoErrorDomain Code: -3 User Info: { } Couldn't get the video from video id
please note the video works on simulator but giving error on device. please help as we are about to release our app tomorrow.
It works for me, thanks a lot Jarek
It works for me, thanks a lot Jarek
please help me also...in my app most of the videos are not getting played..:(
It works for me, thanks a lot Jarek
please help me also...in my app most of the videos are not getting played..:(
Hi I have added new lines from https://github.com/0xced/XCDYouTubeKit/pull/524/commits/893401b5dcfefa300e324bbe93af6ab2be49e384
to the file: XCDYouTubeKit/XCDYouTubeVideoOperation.m
Hope that helps Best Jarek
Can you add the fix from other pull-requests: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1" };
@sherwinzadeh I've merged both pull requests in the master branch of my fork. I use it myself in SwiftPM for my own project.
Hey, Great work with your repo. I've seen that YouTube made some changes recently that make XCDYouTubeKit fail in many regions. The issue was "discussed" in #523. I implemented the same solution as in youtube-dl commit 14f29f. It basically has to set a "consent-cookie" so YouTube sees you agree with their terms and conditions, cookie rules or whatever.
Would be happy to hear your feedback