views:

94

answers:

1

Hi.

I have a UIWebView that loads a YouTube video.

The problem is, that if the video is playing in full screen and I reload the web view to "about:blank" to stop the video, the video player remains as the top view in the window's view hierarchy and blocks everything.
Only the black video player remains visible.

Has someone encountered this issue?

Thanks.

+1  A: 

I have the same problem.

Using the old embed code ( http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application) causes this problem for me. Similarly, the video does not rotate into landscape mode.

I've switched over to the beta code at http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html. Seems to work.

The inability to switch to landscape during playback is still there though.

mmilo