Packagecom.media.orientation
Classpublic class CameraOrientation
InheritanceCameraOrientation Inheritance Object

CameraOrientation class.



Public Methods
 MethodDefined By
  
CameraOrientation
  
deg(index:int):int
Camera orientation in degrees, rotation to put the image in the right direction.
CameraOrientation
  
dispose():void
Dispose extension context.
CameraOrientation
  
orientation(index:int):int
Camera orientation.
CameraOrientation
  
rad(index:int):Number
Camera orientation in radians, rotation to put the image in the right direction.
CameraOrientation
  
resolution(index:int):Object
Max camera resolution.
CameraOrientation
  
resolution16by9(index:int):Object
Max camera resolution 16:9.
CameraOrientation
  
resolution4by3(index:int):Object
Max camera resolution 4:3.
CameraOrientation
  
resolutions(index:int):Array
Get an Array of camera resolutions.
CameraOrientation
  
resolutions16by9(index:int):Array
Get an Array of camera resolutions 16:9.
CameraOrientation
  
resolutions4by3(index:int):Array
Get an Array of camera resolutions 4:3.
CameraOrientation
Public Constants
 ConstantDefined By
  LANDSCAPE_LEFT : int = 4
[static] Camera orientation landscape left
CameraOrientation
  LANDSCAPE_RIGHT : int = 3
[static] Camera orientation landscape right
CameraOrientation
  PORTRAIT : int = 1
[static] Camera orientation portrait
CameraOrientation
  PORTRAIT_UPSIDE_DOWN : int = 2
[static] Camera orientation portrait upside down
CameraOrientation
Constructor Detail
CameraOrientation()Constructor
public function CameraOrientation()



Method Detail
deg()method
public function deg(index:int):int

Camera orientation in degrees, rotation to put the image in the right direction.

On Windows, macOS, Linux return always 0.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
int — Camera orientation in degrees
dispose()method 
public function dispose():void

Dispose extension context.

orientation()method 
public function orientation(index:int):int

Camera orientation.

On Windows, macOS, Linux return always PORTRAIT.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
int — Camera orientation, possible values are PORTRAIT, PORTRAIT_UPSIDE_DOWN, LANDSCAPE_LEFT or LANDSCAPE_RIGHT
rad()method 
public function rad(index:int):Number

Camera orientation in radians, rotation to put the image in the right direction.

On Windows, macOS, Linux return always 0.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Number — Camera orientation in radians
resolution()method 
public function resolution(index:int):Object

Max camera resolution.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Object — Object with properties width and height
resolution16by9()method 
public function resolution16by9(index:int):Object

Max camera resolution 16:9.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Object — Object with properties width and height
resolution4by3()method 
public function resolution4by3(index:int):Object

Max camera resolution 4:3.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Object — Object with properties width and height
resolutions()method 
public function resolutions(index:int):Array

Get an Array of camera resolutions.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Array — Array of Camera resolutions, Object with properties width and height
resolutions16by9()method 
public function resolutions16by9(index:int):Array

Get an Array of camera resolutions 16:9.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Array — Array of Camera resolutions, Object with properties width and height
resolutions4by3()method 
public function resolutions4by3(index:int):Array

Get an Array of camera resolutions 4:3.

Parameters

index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.

Returns
Array — Array of Camera resolutions, Object with properties width and height
Constant Detail
LANDSCAPE_LEFTConstant
public static const LANDSCAPE_LEFT:int = 4

Camera orientation landscape left

LANDSCAPE_RIGHTConstant 
public static const LANDSCAPE_RIGHT:int = 3

Camera orientation landscape right

PORTRAITConstant 
public static const PORTRAIT:int = 1

Camera orientation portrait

PORTRAIT_UPSIDE_DOWNConstant 
public static const PORTRAIT_UPSIDE_DOWN:int = 2

Camera orientation portrait upside down