I am using this library https://github.com/youtube/youtube-ios-player-helper in my project. The player works well if I use the video Id given by the sample (M7lc1UVf-VE). If I use the video Id from r random video on youtube it shows:
An error occurred, please try again later. Learn More
Do I need to enable a youtube data API or something like that??? cause I see another IOS Youtube helper needs to do so. https://github.com/youtube/yt-direct-lite-iOS
Thanks.
add this in your playerVars @"origin" :@"http://www.youtube.com" it will work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With