Reputation: 4386
I am trying to use a YTPlayerView in my app and I'm running into problems with loading in the video. I have checked the videoId that it is using and when I paste it into safari (www.youtube.com/watch?v=videoId) I arrive at the correct video on YouTube. However, when I load the video into the YTPlayerView with the loadWithVideoId: method the webview of the player view is empty.
Upvotes: 0
Views: 1082
Reputation: 36
Some videos on YouTube Mobile are protected from copyright holders.
I don't know the reason why we can't play them on mobile.
Test your video ID on your phone instead of your desktop.
If you can't play it on your phone, the video is protected one.
I recommend XCDYouTubeKit framework.
It will help your problem.
Upvotes: 2