Detecting if a phone is in portrait or landscape?


Do you know about any options or future feature releases to detect if the player is in portrait or landscape mode on a mobile phone? I know that I could make a transition to a landscape page with a button or so, but then, when the screen is rotated, the landscape page is displayed in portrait mode which feels like a really sketchy user experience.