This is a migrated thread and some comments may be shown as answers.

app is portrait only mode, I want full screen html5 video in landscape

1 Answer 514 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jan-Dirk
Top achievements
Rank 1
Jan-Dirk asked on 19 Jul 2013, 02:08 PM
My app is currently only supporting portrait mode. I am adding a html5 player on one of the pages and just for the video I would like to have the possibility to show it in landscape. Leaving the video should bring the app back into portrait mode.

Any ideas how to do this?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Jul 2013, 10:32 AM
Hi JD,

There is no out of the box Cordova support for what you require. There are some workarounds that you could find here:
  • http://stackoverflow.com/questions/16480010/force-orientation-on-certain-pages
  • http://www.web-garden.co.uk/blog/2012/7/29/how-to-control-the-page-orientations-in-your-ios-phonegap-application-part-2

or even plug-ins (iOS only):
https://github.com/acti0nm4n/Phonegap-Orientation-iOS

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
HTML5, CSS, JavaScript
Asked by
Jan-Dirk
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or