edit: I was in the middle of developing Adobe AIR for Android when I answered this question and, looking back, I realized that this question does not apply to Adobe AIR.
Adobe says:
On devices that can change the screen orientation, such as mobile phones, a Video object attached to the camera will only show vertical video in landscape orientation. Thus, mobile applications should use landscape orientation when displaying video and should not automatically rotate.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html
If you really want to use the camera in portrait mode, my suggestion is to rotate the video object.
Here is an example of code that rotates a video object (_video) by an angle in degrees (the source was pulled from another place in stackoverflow):
var matrix:Matrix = _video.transform.matrix; var rect:Rectangle = _video.getBounds(this); matrix.translate(- (rect.left + (rect.width/2)), - (rect.top + (rect.height/2))); matrix.rotate((angle/180)*Math.PI); matrix.translate(rect.left + (rect.width/2), rect.top + (rect.height/2)); _video.transform.matrix = matrix;
Praveen
source share