| Package | com.gestureworks.cml.element | 
| Class | public class Video | 
| Inheritance | Video    TouchContainer   TouchContainerFactory   TouchSprite   flash.display.Sprite | 
| Subclasses | VideoElement | 
It support the following file types are: .mp4, .FLV, .MPEG-4, .m4v, .3GPP, .MOV, .F4V
     
       var video:VideoElement = new VideoElement();
        video.src = "myVideo.mp4";
        video.autoplay = true;
        video.init();
        addChild(video);        
        video.play();
     
     | Property | Defined By | ||
|---|---|---|---|
![]()  | _$height : Number = 0 | TouchSprite | |
![]()  | _$rotation : Number = 0 | TouchSprite | |
![]()  | $rotation : Number | TouchSprite | |
![]()  | _$scaleX : Number = 1 | TouchSprite | |
![]()  | $scaleX : Number | TouchSprite | |
![]()  | _$scaleY : Number = 1 | TouchSprite | |
![]()  | $scaleY : Number | TouchSprite | |
![]()  | $transformPoint : Point | TouchSprite | |
![]()  | _$width : Number = 0 | TouchSprite | |
![]()  | _$x : Number = 0 | TouchSprite | |
![]()  | $x : Number | TouchSprite | |
![]()  | _$y : Number = 0 | TouchSprite | |
![]()  | $y : Number | TouchSprite | |
| autoLoad : Boolean 
		 Indicates whether the video file is loaded when the src property is set
		   | Video | ||
| autoplay : Boolean 
		 Indicates whether the video file plays upon load
		   | Video | ||
![]()  | autoShuffle : Boolean 
		 autoshuffles
		   | TouchContainerFactory | |
![]()  | broadcastTarget : Boolean | TouchSprite | |
| centerPlayButton : Boolean = false 
		 Flag central alignment of the play button
		   | Video | ||
![]()  | childList : ChildList [read-only] 
		 returns the childlist
		   | TouchContainerFactory | |
![]()  | class_ : String 
		 Object's css class; 
		   | TouchContainerFactory | |
![]()  | className : String 
		 sets the class name of displayobject
		   | TouchContainerFactory | |
![]()  | cloneExclusions : Vector.<String> [read-only] 
		 Returns a list of properties to exclude when cloning this object
		   | TouchContainer | |
![]()  | clusterBubbling : Boolean  
		 Allows touch points from a childclusters to copy into container touch objects
		 in the local parent child display list stack.  | TouchSprite | |
![]()  | clusterEvents : Boolean 
		Determins whether clusterEvents are processed and dispatched on the touchSprite.  | TouchSprite | |
![]()  | clusterID : int | TouchSprite | |
![]()  | cmlIndex : int 
		 sets the cml index
		   | TouchContainerFactory | |
![]()  | cml_item : Boolean | TouchSprite | |
![]()  | cO : ClusterObject | TouchSprite | |
| deblocking : int 
		 Indicates the type of filter applied to decoded video as part of post-processing.  | Video | ||
| debug : Boolean 
		 Prints status message to console
		   | Video | ||
![]()  | debugDisplay : Boolean | TouchSprite | |
![]()  | deltaFilterOn : Boolean 
		Determins whether filtering is applied to the delta values.  | TouchSprite | |
![]()  | dimensionsTo : String 
		 sets the dimensions of touchcontainer
		   | TouchContainerFactory | |
![]()  | disableAffineTransform : Boolean 
		Determins whether internal (native) transformations are affine (dynamically centered) on the touchSprite.  | TouchSprite | |
![]()  | disableNativeTransform : Boolean 
		Determins whether transformations are handled internally (natively) on the touchSprite.  | TouchSprite | |
![]()  | dN : Number | TouchSprite | |
![]()  | dropShadow : Boolean 
		 Sets the drop shadow effect
		   | TouchContainerFactory | |
| duration : Number [read-only] 
		 Total video duration
		   | Video | ||
![]()  | GESTRELIST_UPDATE : String = gestureList update [static]   | TouchSprite | |
![]()  | gestureEventComplete : Boolean 
		Indicates weather all gestureEvents have been completed on the touchSprite.  | TouchSprite | |
![]()  | gestureEventRelease : Boolean 
		Indicates whether all touch points have been released on the touchSprite.  | TouchSprite | |
![]()  | gestureEvents : Boolean 
		Determins whether gestureEvents are processed and dispatched on the touchSprite.  | TouchSprite | |
![]()  | gestureEventStart : Boolean 
		Indicates whether any gestureEvents have been started on the touchSprite.  | TouchSprite | |
![]()  | gestureFilters : Boolean | TouchSprite | |
![]()  | gestureList : Object | TouchSprite | |
![]()  | gestureReleaseInertia : Boolean 
		Determins whether release inertia is given to gestureEvents on the touchSprite.  | TouchSprite | |
![]()  | gestureTouchInertia : Boolean 
		Determins whether touch inertia is processed on the touchSprite.  | TouchSprite | |
![]()  | _gestureTweenOn : Boolean = false | TouchSprite | |
![]()  | gestureTweenOn : Boolean | TouchSprite | |
![]()  | gO : GestureListObject | TouchSprite | |
![]()  | group : String | TouchContainerFactory | |
| height : Number [override] 
		 Sets the video height
		   | Video | ||
![]()  | id : String 
		 sets childlist id
		   | TouchContainerFactory | |
| isPlaying : Boolean [read-only] 
		 sets video playing status
		   | Video | ||
![]()  | layout : * 
		 speciffies the type of layout
		   | TouchContainerFactory | |
![]()  | layoutComplete : Function 
		 Sets the function to call when the layout is complete
		   | TouchContainer | |
![]()  | layoutList : Dictionary | TouchContainer | |
![]()  | layoutUpdate : Function 
		 Sets the function to call when the layout updates
		   | TouchContainer | |
| loop : Boolean 
		 Video loop play
		   | Video | ||
![]()  | maxScale : Number 
		This method is called after class initialization.  | TouchContainerFactory | |
![]()  | minScale : Number 
		This method is called after class initialization.  | TouchContainerFactory | |
![]()  | mouseChildren : Boolean [override] 
		 sets the mousechildren value to true or false.  | TouchContainerFactory | |
![]()  | N : int | TouchSprite | |
![]()  | nestedTransform : Boolean | TouchSprite | |
![]()  | outline_alpha : Number 
		 sets the alpha of outline
		   | TouchContainerFactory | |
![]()  | outline_color : Number 
		 sets the color of outline
		   | TouchContainerFactory | |
![]()  | outline_joint : String 
		 TODO
		   | TouchContainerFactory | |
![]()  | outlineOn : String 
		 specifies the outline of container to true or false
		   | TouchContainerFactory | |
![]()  | outline_stroke : int 
		 sets the line stroke of outline
		   | TouchContainerFactory | |
| percentLoaded : Number [read-only] 
		 Percent of file loaded 
		   | Video | ||
| playButtonState : String 
		 Specifies the button state to execute the play operation
		   | Video | ||
![]()  | pointArray : Vector.<PointObject> [read-only]   | TouchSprite | |
![]()  | pointCount : int | TouchSprite | |
| position : Number [read-only] 
		 Playhead position in ms
		   | Video | ||
| progressBar : * 
		 Links a progress bar to the video process
		   | Video | ||
![]()  | propertyStates : Array Deprecated: Please Use state  | TouchContainerFactory | |
![]()  | scale : Number 
		 Scales display object
		   | TouchContainer | |
| smoothing : Boolean 
		 Specifies whether the video should be smoothed (interpolated) when it is scaled.  | Video | ||
![]()  | sO : StrokeObject | TouchSprite | |
| src : String 
		 Sets the video file path
		   | Video | ||
![]()  | state : Array 
		 property states array
		   | TouchContainerFactory | |
![]()  | targeting : Boolean  
		Turns off manual ALL targeting control, defaults to a simple hit test
		targeting model with exclusive target clustering
		  | TouchSprite | |
![]()  | targetList : Array  
		Allows touch and gesture events to explicitly target a group of defined 
		touch objects which can be outside of the local parent child display list stack
		  | TouchSprite | |
![]()  | targetObject : Object  
		 Allows touch and gesture events to explicitly target a touch object 
		 this can be outside the local parent child display list stack
		  | TouchSprite | |
![]()  | targetParent : Boolean 
		Allows touch and gesture events to explicitly target the parent touch object
		  | TouchSprite | |
![]()  | tc : TouchCluster | TouchSprite | |
![]()  | td : TouchDebugDisplay | TouchSprite | |
![]()  | tg : TouchGesture | TouchSprite | |
![]()  | tiO : TimelineObject | TouchSprite | |
![]()  | touchChildren : Boolean | TouchSprite | |
![]()  | touchObjectID : int [read-only]   | TouchSprite | |
![]()  | tp : TouchPipeline | TouchSprite | |
![]()  | traceDebugModeOn : Boolean | TouchSprite | |
![]()  | transformComplete : Boolean | TouchSprite | |
![]()  | transformEventComplete : Boolean | TouchSprite | |
![]()  | transformEvents : Boolean 
		Determins whether transformEvents are processed and dispatched on the touchSprite.  | TouchSprite | |
![]()  | transformEventStart : Boolean | TouchSprite | |
![]()  | transformGestureVectors : Boolean 
		Determins whether transformations are handled internally (natively) on the touchSprite.  | TouchSprite | |
![]()  | transformStart : Boolean | TouchSprite | |
![]()  | trO : TransformObject | TouchSprite | |
![]()  | tt : TouchTransform | TouchSprite | |
| width : Number [override] 
		 Sets the video width
		   | Video | ||
![]()  | x_lock : Boolean | TouchSprite | |
![]()  | y_lock : Boolean | TouchSprite | |
| Method | Defined By | ||
|---|---|---|---|
Video() 
		 Constructor
		   | Video | ||
![]()  | activateTouch():void 
		 TODO
		   | TouchContainerFactory | |
![]()  | addAllChildren():void 
		 method searches the child and adds to the list
		   | TouchContainerFactory | |
![]()  | addChild(child:DisplayObject):DisplayObject [override] 
		 Adds child to display list and, if not already added, the child list
		   | TouchContainer | |
![]()  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override] 
		 Registers event listeners.  | TouchSprite | |
![]()  | applyLayout(value:* = null):void 
		 Apply the containers layout
		   | TouchContainer | |
![]()  | childToList(id:String, child:*):void 
		 child appended to the childlist
		   | TouchContainerFactory | |
![]()  | clone():* 
		 Clone method
		   | TouchContainer | |
close():void 
		 Closes video 
		   | Video | ||
![]()  | displayComplete():void [override]   | TouchContainer | |
dispose():void [override] 
		 Dispose methods and remove listeners
		   | Video | ||
![]()  | hideIndex(index:int):void 
		 hides child list index 
		   | TouchContainer | |
![]()  | hideKey(key:String):void 
		 hides childlist key visibility
		   | TouchContainer | |
init():void [override]   | Video | ||
![]()  | makeGestureList(value:XMLList):Object 
		 TODO
		   | TouchContainerFactory | |
![]()  | onTouchDown(event:TouchEvent, target:* = null):void 
		 decides how to assign the captured touch point to a cluster
		 can pass to parent, an explicit target, an explicit list or 
		 targets or a passed to any touch object in the local display stack.  | TouchSprite | |
open(file:String = null):void 
		 Sets the src property and loads the video
		   | Video | ||
![]()  | parseCML(cml:XMLList):XMLList [override] 
		 Parse cml for local layouts.  | TouchContainer | |
pause():void 
		 Pauses video
		   | Video | ||
play(e:StateEvent = null):void 
		 Plays the video from the beginning
		   | Video | ||
![]()  | postparseCML(cml:XMLList):void 
		 postparse method
		   | TouchContainerFactory | |
resume():void 
		 Resumes video playback from paused position
		   | Video | ||
![]()  | searchChildren(value:*, returnType:Class = null):* 
		 This method does a depth first search of childLists.  | TouchContainer | |
seek(offset:Number):void 
		 Sets the video playhead position
		   | Video | ||
![]()  | setDimensionsToChild():void 
		 method sets the dimensions of each child
		   | TouchContainerFactory | |
![]()  | showIndex(index:int):void 
		 shows index of the child list
		   | TouchContainer | |
![]()  | showKey(key:String):void 
		 shows the child list key visibility
		   | TouchContainer | |
stop():void 
		 Pauses video and returns to the beginning
		   | Video | ||
![]()  | updateClusterAnalysis():void  | TouchSprite | |
![]()  | updateDebugDisplay():void  | TouchSprite | |
![]()  | updateGesturePipeline():void  | TouchSprite | |
![]()  | updateListeners():void 
		 Registers/unregisters event handlers depending on the active modes
		   | TouchSprite | |
![]()  | updateMotionClusterAnalysis():void  | TouchSprite | |
![]()  | updateProperties(state:Number = 0):void 
		 update properties of child
		   | TouchContainerFactory | |
![]()  | updateSensorClusterAnalysis():void  | TouchSprite | |
![]()  | updateTObjProcessing():void  | TouchSprite | |
| autoLoad | property | 
autoLoad:BooleanIndicates whether the video file is loaded when the src property is set
    public function get autoLoad():Boolean    public function set autoLoad(value:Boolean):void| autoplay | property | 
autoplay:BooleanIndicates whether the video file plays upon load
    public function get autoplay():Boolean    public function set autoplay(value:Boolean):void| centerPlayButton | property | 
public var centerPlayButton:Boolean = falseFlag central alignment of the play button
| deblocking | property | 
deblocking:intIndicates the type of filter applied to decoded video as part of post-processing.
    public function get deblocking():int    public function set deblocking(value:int):void| debug | property | 
debug:BooleanPrints status message to console
    public function get debug():Boolean    public function set debug(value:Boolean):void| duration | property | 
duration:Number  [read-only] Total video duration
    public function get duration():Number| height | property | 
height:Number[override] Sets the video height
    public function get height():Number    public function set height(value:Number):void| isPlaying | property | 
isPlaying:Boolean  [read-only] sets video playing status
    public function get isPlaying():Boolean| loop | property | 
loop:BooleanVideo loop play
    public function get loop():Boolean    public function set loop(value:Boolean):void| percentLoaded | property | 
percentLoaded:Number  [read-only] Percent of file loaded
    public function get percentLoaded():Number| playButtonState | property | 
playButtonState:StringSpecifies the button state to execute the play operation
 The default value is down.
    public function get playButtonState():String    public function set playButtonState(value:String):void| position | property | 
position:Number  [read-only] Playhead position in ms
    public function get position():Number| progressBar | property | 
progressBar:*Links a progress bar to the video process
    public function get progressBar():*    public function set progressBar(value:any):void| smoothing | property | 
smoothing:BooleanSpecifies whether the video should be smoothed (interpolated) when it is scaled.
    public function get smoothing():Boolean    public function set smoothing(value:Boolean):void| src | property | 
src:StringSets the video file path
    public function get src():String    public function set src(value:String):void| width | property | 
width:Number[override] Sets the video width
    public function get width():Number    public function set width(value:Number):void| Video | () | Constructor | 
public function Video()Constructor
| close | () | method | 
 public function close():voidCloses video
| dispose | () | method | 
override public function dispose():voidDispose methods and remove listeners
| init | () | method | 
override public function init():void| open | () | method | 
 public function open(file:String = null):voidSets the src property and loads the video
Parameters
file:String (default = null) | 
| pause | () | method | 
 public function pause():voidPauses video
| play | () | method | 
 public function play(e:StateEvent = null):voidPlays the video from the beginning
Parameters
e:StateEvent (default = null) | 
| resume | () | method | 
 public function resume():voidResumes video playback from paused position
| seek | () | method | 
 public function seek(offset:Number):voidSets the video playhead position
Parameters
offset:Number | 
| stop | () | method | 
 public function stop():voidPauses video and returns to the beginning