Pat*_*nan 11 youtube objective-c ios cocoapods
我试试
[self.playerView loadWithVideoId:@"M7lc1UVf-VE"];
Run Code Online (Sandbox Code Playgroud)
但self.playerView不是response和error
youtube[14628:2831405] Received error rendering template: Error Domain=NSCocoaErrorDomain Code=258 "The file name is invalid."
Run Code Online (Sandbox Code Playgroud)
怎么了?
Mih*_*kov 17
我遇到过同样的问题.我使用CocoaPods,由于某种原因Assets没有安装该文件夹.
解决方法是手动添加Assets.bundle文件夹 - 指南非常简单.我相信你已经检查过了:)
https://developers.google.com/youtube/v3/guides/ios_youtube_helper
然后我pod install再次运行命令,它运行得很好.
小智 6
我也遇到了同样的问题.我在他们的Github页面上找到了一个适合我的解决方案:https: //github.com/youtube/youtube-ios-player-helper/issues/160
具体来说,我刚刚用以下内容更改了pod:
pod 'youtube-ios-player-helper', :git=>'https://github.com/youtube/youtube-ios-player-helper', :commit=>'head'
希望有所帮助
备用方式/手动安装