Reputation: 236
I am trying to display landscape in adobe air (ios/android) stage video when the screen is portrait and the autoOrients = false
Can I rotate the video?
Or do other manipulation that will case the video to rotate?
Upvotes: 0
Views: 291
Reputation: 175
When you locked autoOrients (false) - you can't receive StageOrientationEvent event so you can't change/read current orientation and this is fully correct.
I can assume that you can using Accelerometer detect angle of your device and emulate orientation changing. In this case you can update stageVideo viewPort frame and video may automatically fits to the frame. But you can't rotate it. Just change width/height depending for pseudo-orientation.
Upvotes: 0
Reputation: 814
This is surprisingly easy. Before you encode the video just turn it on its side.Then encode it. So that when it opens it will open like this in your portrait-mode app:
Then just add it to your media assets in the usual way. When it plays just turn your phone 90 degrees! When finished, turn back to the rest of your portrait-mode material.
If your video already exists and you don't have access to, say, Adobe After Effects in order to make the rotation, you can rotate it with iMovie on a Mac, Windows Live Movie Maker on Windows, or even through some web sites that do this as a service.
Upvotes: 1