| Package | vegas.media |
| Class | public class StageVideoExpert |
| Inheritance | StageVideoExpert Object |
| Implements | Lockable |
| Property | Defined By | ||
|---|---|---|---|
| autoSize : Boolean
Indicates if the StageVideo object is resizing when the stage resize event is invoked. | StageVideoExpert | ||
| colorSpaces : Vector.<String> [read-only]
If the stageVideo reference is not null, indicates the names of available color spaces for this video surface. | StageVideoExpert | ||
| depth : int
The depth level of a StageVideo object relative to other StageVideo objects. | StageVideoExpert | ||
| direction : String
Indicates the direction value of the background when the display is in this "full" mode (default value is null). | StageVideoExpert | ||
| h : Number
Determinates the virtual height value of this component. | StageVideoExpert | ||
| index : uint
The index of the expert to choose the good StageVideo reference in the stage.stageVideos collection. | StageVideoExpert | ||
| isFull : Boolean
Indicates if the StageVideo use full size (use Stage.stageWidth and Stage.stageHeight to update this viewPort property). | StageVideoExpert | ||
| keepAspectRatio : Boolean
Indicates if the pen keep the aspect ratio. | StageVideoExpert | ||
| maxHeight : Number
This property defined the maximum height of this display. | StageVideoExpert | ||
| maxWidth : Number
Defines the maximum width of this display. | StageVideoExpert | ||
| minHeight : Number
This property defined the mimimun height of this display (This value is >= 0). | StageVideoExpert | ||
| minWidth : Number
This property defined the mimimun width of this display (This value is >= 0). | StageVideoExpert | ||
| pan : Point
The index of the expert to choose the good StageVideo reference in the stage.stageVideos collection. | StageVideoExpert | ||
| renderState : Signaler
This signal emit when the StageVideo object render state of the StageVideo object changes. | StageVideoExpert | ||
| stage : Stage [read-only]
The stage reference of this expert. | StageVideoExpert | ||
| stageVideo : StageVideo [read-only]
The StageVideo reference of the expert. | StageVideoExpert | ||
| videoHeight : int [read-only]
If the stageVideo reference is not null, an integer specifying the height of the video stream, in pixels. | StageVideoExpert | ||
| videoWidth : int [read-only]
If the stageVideo reference is not null, an integer specifying the width of the video stream, in pixels. | StageVideoExpert | ||
| viewPort : Rectangle
The absolute position and size of the video surface in pixels. | StageVideoExpert | ||
| w : Number
Determinates the virtual height value of this component. | StageVideoExpert | ||
| x : Number
Determinates the x coordinate of the video in the stage. | StageVideoExpert | ||
| y : Number
Determinates the y coordinate of the video in the stage. | StageVideoExpert | ||
| zoom : Point
The zoom setting of the video, specified as a Point object. | StageVideoExpert | ||
| Method | Defined By | ||
|---|---|---|---|
StageVideoExpert(stage:Stage, x:Number = 0, h:Number = 0, width:Number = 0, height:Number = 0, index:uint = 0)
Creates a new StageVideoExpert instance. | StageVideoExpert | ||
attachNetStream(netStream:NetStream):void
Specifies a video stream to be displayed within the boundaries of the StageVideo object in the application. | StageVideoExpert | ||
isLocked():Boolean
Returns true if the object is locked. | StageVideoExpert | ||
lock():void
Locks the object. | StageVideoExpert | ||
resetLock():void
Reset the lock security of the display. | StageVideoExpert | ||
setSize(width:Number, height:Number):void
Sets the virtual width (w) and height (h) values of the component. | StageVideoExpert | ||
unlock():void
Unlocks the display. | StageVideoExpert | ||
| Method | Defined By | ||
|---|---|---|---|
setUp():void
Set up the StageVideo reference. | StageVideoExpert | ||
tearDown():void
Tear down the StageVideo reference. | StageVideoExpert | ||
update(e:Event = null):void
Update the stageVideo object. | StageVideoExpert | ||
| autoSize | property |
autoSize:BooleanIndicates if the StageVideo object is resizing when the stage resize event is invoked.
public function get autoSize():Boolean public function set autoSize(value:Boolean):void| colorSpaces | property |
colorSpaces:Vector.<String> [read-only] If the stageVideo reference is not null, indicates the names of available color spaces for this video surface. Usually this list includes "BT.601" and "BT.709". On some configurations, only "BT.601" is supported which means a video is possibly not rendered in the correct color space.
Note: On AIR for TV devices, a value of "BT.601" indicates software playback, and a value of "BT.709" indicates hardware playback.
public function get colorSpaces():Vector.<String>| depth | property |
depth:intThe depth level of a StageVideo object relative to other StageVideo objects. StageVideo objects always display behind other objects on the stage. If a platform supports more than one StageVideo object, the depth property indicates a StageVideo object's depth level. The bottom StageVideo object's depth property has the smallest value. If multiple StageVideo objects have the same depth setting, the order they appear in the stage,stageVideos Vector determines their relative depth.
public function get depth():int public function set depth(value:int):void| direction | property |
direction:StringIndicates the direction value of the background when the display is in this "full" mode (default value is null).
public function get direction():String public function set direction(value:String):voidSee also
| h | property |
h:NumberDeterminates the virtual height value of this component.
public function get h():Number public function set h(value:Number):void| index | property |
index:uintThe index of the expert to choose the good StageVideo reference in the stage.stageVideos collection.
public function get index():uint public function set index(value:uint):void| isFull | property |
isFull:BooleanIndicates if the StageVideo use full size (use Stage.stageWidth and Stage.stageHeight to update this viewPort property).
public function get isFull():Boolean public function set isFull(value:Boolean):void| keepAspectRatio | property |
keepAspectRatio:BooleanIndicates if the pen keep the aspect ratio.
public function get keepAspectRatio():Boolean public function set keepAspectRatio(value:Boolean):void| maxHeight | property |
maxHeight:NumberThis property defined the maximum height of this display.
public function get maxHeight():Number public function set maxHeight(value:Number):void| maxWidth | property |
maxWidth:NumberDefines the maximum width of this display.
public function get maxWidth():Number public function set maxWidth(value:Number):void| minHeight | property |
minHeight:NumberThis property defined the mimimun height of this display (This value is >= 0).
public function get minHeight():Number public function set minHeight(value:Number):void| minWidth | property |
minWidth:NumberThis property defined the mimimun width of this display (This value is >= 0).
public function get minWidth():Number public function set minWidth(value:Number):void| pan | property |
pan:PointThe index of the expert to choose the good StageVideo reference in the stage.stageVideos collection.
public function get pan():Point public function set pan(value:Point):void| renderState | property |
renderState:SignalerThis signal emit when the StageVideo object render state of the StageVideo object changes.
public function get renderState():Signaler public function set renderState(value:Signaler):void| stage | property |
stage:Stage [read-only] The stage reference of this expert.
public function get stage():Stage| stageVideo | property |
stageVideo:StageVideo [read-only] The StageVideo reference of the expert.
public function get stageVideo():StageVideo| videoHeight | property |
videoHeight:int [read-only] If the stageVideo reference is not null, an integer specifying the height of the video stream, in pixels.
public function get videoHeight():int| videoWidth | property |
videoWidth:int [read-only] If the stageVideo reference is not null, an integer specifying the width of the video stream, in pixels.
public function get videoWidth():int| viewPort | property |
viewPort:RectangleThe absolute position and size of the video surface in pixels. The position of the video is relative to the upper left corner of the stage. The valid range of the x and y properties of the viewPort Rectangle object are -8192 to 8191. Therefore, you can position the video completely or partially off the stage. You can also make the video larger than the stage if you make the width and height properties of the viewPort property larger than the stage.
public function get viewPort():Rectangle public function set viewPort(value:Rectangle):void| w | property |
w:NumberDeterminates the virtual height value of this component.
public function get w():Number public function set w(value:Number):void| x | property |
x:NumberDeterminates the x coordinate of the video in the stage. If the expert use the isFull mode the x returns always 0 but keep in memory the real value.
public function get x():Number public function set x(value:Number):void| y | property |
y:NumberDeterminates the y coordinate of the video in the stage. If the expert use the isFull mode the y returns always 0 but keep in memory the real value.
public function get y():Number public function set y(value:Number):void| zoom | property |
zoom:PointThe zoom setting of the video, specified as a Point object. The zoom point is a scale factor. By default, the value of zoom is (1.0, 1.0). This default value displays the entire video in the StageVideo.viewPort rectangle. The valid values of the zoom property range from (1.0, 1.0) to (16.0, 16.0). The x property of the zoom Point object specifies the zoom value for the horizontal pixels, and the y property specifies the zoom value for the vertical pixels.
public function get zoom():Point public function set zoom(value:Point):void| StageVideoExpert | () | Constructor |
public function StageVideoExpert(stage:Stage, x:Number = 0, h:Number = 0, width:Number = 0, height:Number = 0, index:uint = 0)Creates a new StageVideoExpert instance.
Parametersstage:Stage — The stage reference.
| |
x:Number (default = 0) — index of the StageVideo in the stage.stageVideos Vectors to find the good StageVideo reference (default 0).
| |
h:Number (default = 0) | |
width:Number (default = 0) | |
height:Number (default = 0) | |
index:uint (default = 0) |
| attachNetStream | () | method |
public function attachNetStream(netStream:NetStream):voidSpecifies a video stream to be displayed within the boundaries of the StageVideo object in the application. The video stream is either a video file played with NetStream.play(), or null. A video file can be stored on the local file system or on Flash Media Server. If the value of the netStream argument is null, the video is no longer played in the StageVideo object. Before calling attachNetStream() a second time, call the currently attached NetStream object's close() method. Calling close() releases all the resources, including hardware decoders, involved with playing the video. Then you can call attachNetStream() with either another NetStream object or null.
Parameters
netStream:NetStream |
| isLocked | () | method |
public function isLocked():Boolean
Returns true if the object is locked.
Boolean — true if the object is locked.
|
| lock | () | method |
public function lock():voidLocks the object.
| resetLock | () | method |
public function resetLock():voidReset the lock security of the display.
| setSize | () | method |
public function setSize(width:Number, height:Number):voidSets the virtual width (w) and height (h) values of the component.
Parameters
width:Number | |
height:Number |
| setUp | () | method |
protected function setUp():voidSet up the StageVideo reference.
| tearDown | () | method |
protected function tearDown():voidTear down the StageVideo reference.
| unlock | () | method |
public function unlock():voidUnlocks the display.
| update | () | method |
protected function update(e:Event = null):voidUpdate the stageVideo object.
Parameters
e:Event (default = null) |