I try to integrate a Youtube player inline to a UIWebview. I use the Javascript/iFrame API with the Player API.
In general, the player works ok. But there are some cases where the video does not start and I get a message "Video is currently unavailable".
I have tried to clear the cache of the uiwebview programmtically using this code:
[[NSURLCache sharedURLCache] removeAllCachedResponses];
I also cleared the cache of the Safari in case this was the problem, but no luck.
An example for a video is the following: http://www.youtube.com/embed/z-6cCmxaGoQ?enablejsapi=1&rel=0&playsinline=1&showinfo=1&controls=0&vq=hd720
Any ideas for this random & strange behaviour?