Packagecom.adobe.mediacore
Classpublic final class ViewScaleMode
InheritanceViewScaleMode Inheritance Object

Class providing string constants to be used with MediaPlayer viewScaleMode property.



Public Constants
 ConstantDefined By
  LETTERBOX : String = letterbox
[static] LETTERBOX sets the width and height of the content as close to the container width and height as possible while maintaining aspect ratio.
ViewScaleMode
  NONE : String = none
[static] NONE implies that the media size is set to match its intrinsic size.
ViewScaleMode
  STRETCH : String = stretch
[static] STRETCH sets the width and the height of the content to the container width and height, possibly changing the content aspect ratio.
ViewScaleMode
  ZOOM : String = zoom
[static] ZOOM is similar to LETTERBOX, except that ZOOM stretches the content past the bounds of the container, to remove the spacing required to maintain aspect ratio.
ViewScaleMode
Constant Detail
LETTERBOXConstant
public static const LETTERBOX:String = letterbox

LETTERBOX sets the width and height of the content as close to the container width and height as possible while maintaining aspect ratio. The content is stretched to a maximum of the container bounds, with spacing added inside the container to maintain the aspect ratio if necessary.

NONEConstant 
public static const NONE:String = none

NONE implies that the media size is set to match its intrinsic size.

STRETCHConstant 
public static const STRETCH:String = stretch

STRETCH sets the width and the height of the content to the container width and height, possibly changing the content aspect ratio.

ZOOMConstant 
public static const ZOOM:String = zoom

ZOOM is similar to LETTERBOX, except that ZOOM stretches the content past the bounds of the container, to remove the spacing required to maintain aspect ratio. This has the effect of using the entire bounds of the container, but also possibly cropping some content.