I’m playing a youtube video from a specific view (not the view that appears for first at app launch) in an iPhone app I’m developing.
Everything works fine: the video preview shows up in the web view inside my specific view and when I tap on it the video plays full screen.
When the video ends (or when I press the Done button) my app shows back, but showing the first view (the one that appears at app launch), not the one from which I launched the video. And what’s even worst, the app doesn’t respond to events (it doesn’t crash, it just doesn’t respond).
I tried to put some NSLogs in all the AppDelegate methods (in case the youtube plugin acts as if leaving my app and then returning), but none gets triggered…
I really have no clue what the problem can be…
I finally avoided the problem using the syntax introduced here http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
In this way, the youtube player correctly returns to the “calling” view containing the web view.