ytplayerview

Using YTPlayerView to play embedded YouTube video in iOS failed with restriction error

烈酒焚心 提交于 2019-11-29 09:58:27
I want play embedded YouTube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play this video with ID = "Ri7-vnrJD3k" ( https://www.youtube.com/embed/Ri7-vnrJD3k ), I got the error message "This video contains content from VEVO. It is restricted from playback on certain sites. Watch on YouTube". Note that there is no such issue when playing some other videos. Is there any way to address the above issue? I could use iframe to play the video inline successfully with below sample swift code. But I don't know how to

Using YTPlayerView to play embedded YouTube video in iOS failed with restriction error

拜拜、爱过 提交于 2019-11-28 03:34:47
问题 I want play embedded YouTube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play this video with ID = "Ri7-vnrJD3k" (https://www.youtube.com/embed/Ri7-vnrJD3k), I got the error message "This video contains content from VEVO. It is restricted from playback on certain sites. Watch on YouTube". Note that there is no such issue when playing some other videos. Is there any way to address the above issue? I could