Youtube assistant player ios cannot play video

I use this library https://github.com/youtube/youtube-ios-player-helper in my project. The player works fine if I use the video identifier specified by the sample (M7lc1UVf-VE). If I use the Id video from r random video on YouTube, it shows:

An error has occurred, please try again later. More details

Do I need to include youtube data API or something like that ??? because I see that another IOS Youtube assistant needs to do this. https://github.com/youtube/yt-direct-lite-iOS

Thanks.

+5
source share
2 answers

If you want to play youtube video, you don’t need an API.

I work with this library without any errors, have you replaced "M7lc1UVf-VE" with the correct video identifier?

0
source

add this to your playerVars @ "origin": @ " http://www.youtube.com " it will work.

0
source

Source: https://habr.com/ru/post/1212594/


All Articles