Reputation: 806
I have a view with a UIWebView on half the size of the iPhone screen. In this webview I embed youtube videos. The app is only in portrait mode. Though I would like to see videos play also in landscape.
Now I want the following behaviour:
What should I do?
Upvotes: 0
Views: 3336
Reputation: 972
As the embedded videos use an undocumented MPInlineVideo(Fullscreen)ViewController, you can't use its API and switch to fullscreen.
I'd thus recommend playing around with the "allowFullScreen"-parameter for the iframe-tag.
If everything fails, you should always be able to change the frame-size of the web-view so that it covers the full screen. You'd have to use width/height 100% in the iframe then.
Disclaimer: This is an educated guess. I've not actually tried to implement it that way.
Upvotes: 1