I'm trying to play a YouTube video within an iPhone app using the technique in this URL http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
The technique works fine and the video plays fine, except that i want the video to switch back to the main view when its finished. when i click on "done" button of the youtube player it does turn back to the main view but when the video is finished the youtube player doesn't disappear(you have to click "done")
Please help!