Quantcast
Channel: User LuckyLuke - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Unable to embed YouTube video with YTPlayerView NSCocoaErrorDomain Code=258

$
0
0

Embedding YouTube videos with YTPlayerView doesn't work. It only gives me this error in the log:

2015-12-12 20:19:45.229 Wax-room[8545:3426005] Received error rendering template: Error Domain=NSCocoaErrorDomain Code=258 "The file name is invalid."

So I Googled it and it obviously has something to do with "YTPlayerView-iframe-player.html" is missing. I have tried all the locations suggested but either they are wrong or I am doing something wrong.The documentation is so bad on using it with Swift (2.x), Cocoapods and iOS 9.

https://developers.google.com/youtube/v3/guides/ios_youtube_helper

There is no Assets folder in the pod either.

Just stumbled over this:

The issue is that the YTPlayerView-iframe-player.html file is not being copied over anymore. I reverted back to 0.1.4 and now I see the html page and it works againhttps://github.com/youtube/youtube-ios-player-helper/issues/160

Its a bug in version 0.1.5 which is the latest. Changed to 0.1.4 and it works now. Check this:https://github.com/youtube/youtube-ios-player-helper/issues/157


Viewing all articles
Browse latest Browse all 37

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>