开发者

iPad embedded YouTube video player stays in fullscreen after stopping it programatically

开发者 https://www.devze.com 2023-01-15 11:44 出处:网络
I have a UIWebView that loads a YouTu开发者_如何转开发be 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 p

I have a UIWebView that loads a YouTu开发者_如何转开发be 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消