I try
[self.playerView loadWithVideoId:@"M7lc1UVf-VE"];
but self.playerView
not response
and error
youtube[14628:2831405] Received error rendering template: Error Domain=NSCocoaErrorDomain Code=258 "The file name is invalid."
what wrong?
Make sure YTPlayerView-iframe-player.html
is copied into your Xcode project and it appears in Settings -> Build Settings -> Copy Bundle Resources.
I had the same issue. I used CocoaPods and for some reason the Assets
folder was not installed.
A work around would be to manually add the Assets.bundle
folder - the guide is pretty straight forward about that. I am sure you have already checked it :)
https://developers.google.com/youtube/v3/guides/ios_youtube_helper
Then I ran the pod install
command once again and it worked just fine.
I ran into the same issue as well. I found a solution that works for me on their Github page: https://github.com/youtube/youtube-ios-player-helper/issues/160
Specifically, I just changed the pod with the following:
pod 'youtube-ios-player-helper', :git=>'https://github.com/youtube/youtube-ios-player-helper', :commit=>'head'
hope that helps
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