Skip to main content
Inspiring
April 1, 2012
Question

Has anyone succeeded with alternate views using stageOrientation ?

  • April 1, 2012
  • 4 replies
  • 681 views

I have an app that is in portrait mode...  but if I lock it to portrait than all videos cannot be viewed in landscape.. which sucks.  ( unless someone knows a workaround for that ).

So I though of writing a switch / case statement to go through each possible stage result.

It doesnt work very well though. 

Does anyone have any examples of how they tackled this ?

This topic has been closed for replies.

4 replies

Adobe Employee
April 1, 2012

Is your app portrait only and you want videos to be landscape only? If yes, do you want your app to support both landscape orientations? If yes, One easy workaround that clicks to me is set Stage.autoOrients to false and setAspectRatio to Landscape before just starting to play the video. Once you are done, you can switch to Portrait Landscape mode and  autoOrients to true.

Applauz78Author
Inspiring
April 1, 2012

That's exactly what I want to do. 

I tried this method and it works for when the video starts playing... But there is no way to detect that a video has ended with the native player so when the user clicks "Done" the video closes and they are stuck looking at the app in a stretched out landscape mode.

Adobe Employee
April 2, 2012