Packagecom.gestureworks.cml.elements
Classpublic class LiveVideo
InheritanceLiveVideo Inheritance TouchContainer Inheritance com.gestureworks.core.TouchSprite

The LiveVideo element captures and displays live video input from a user’s camera and also captures audio from a microphone.
     
        var livevideo:LiveVideo = new LiveVideo;
        livevideo.camera = new Camera();
        livevideo.mic = new Microphone();
        addChild(livevideo);
        livevideo.init();
    
     
     



Public Properties
 PropertyDefined By
 InheritedautoShuffle : Boolean
autoshuffles
TouchContainer
  cam : Camera
LiveVideo
  _camera : VideoCamera
defines camera element.
LiveVideo
  camera : *
sets the camera element.
LiveVideo
 InheritedchildList : ChildList
Returns the object's childList.
TouchContainer
 InheritedclassName : String
sets the class name of displayobject
TouchContainer
 InheritedcloneExclusions : Vector.<String>
[read-only] Returns a list of properties to exclude when cloning this object
TouchContainer
 InheritedcmlIndex : int
Returns the index created by the CML parser.
TouchContainer
 InheriteddimensionsTo : Object
Sets the dimensions of TouchContainer to given object
TouchContainer
 InheriteddropShadow : Boolean
Sets the drop shadow effect
TouchContainer
 Inheritedgroup : String
TouchContainer
  height : Number
[override] sets the height of the video
LiveVideo
 InheritedheightPercent : Number
sets the height of the container
TouchContainer
 Inheritedid : String
Returns the object's id.
TouchContainer
 Inheritedlayout : *
specifies the type of layout
TouchContainer
 InheritedlayoutList : Dictionary
TouchContainer
  mic : Microphone
LiveVideo
  _microphone : Microphone
defines the mic object.
LiveVideo
  microphone : *
sets the microphone element.
LiveVideo
 InheritedmouseChildren : Boolean
[override] sets the mousechildren value to true or false.
TouchContainer
  netConnection : NetConnection
Defines net connection object.
LiveVideo
  netstream : NetStream
Defines netstream object.
LiveVideo
 InheritedpaddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area.
TouchContainer
 InheritedpaddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area.
TouchContainer
 InheritedpaddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area.
TouchContainer
 InheritedpaddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area.
TouchContainer
 Inheritedposition : *
Sets the position
TouchContainer
 InheritedrelativeX : Boolean
When set true this containers children's x position will be laid out relatively to each other.
TouchContainer
 InheritedrelativeY : Boolean
When set true this containers children's y position will be laid out relatively to each other.
TouchContainer
 Inheritedsound : String
TouchContainer
 Inheritedstate : Dictionary
TouchContainer
 InheritedstateId : *
Returns the current state id.
TouchContainer
 InheritedtoBitmap : Boolean
TouchContainer
  video : Video
defines the video element
LiveVideo
  width : Number
[override] setd the width of the video
LiveVideo
 InheritedwidthPercent : Number
sets the width of the container
TouchContainer
Protected Properties
 PropertyDefined By
 InheritedcmlGestureList : Object
TouchContainer
Public Methods
 MethodDefined By
  
LiveVideoElement Constructor.
LiveVideo
 Inherited
TouchContainer
 Inherited
method searches the child and adds to the list
TouchContainer
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
TouchContainer
 Inherited
childToList(id:String, child:*):void
child appended to the childlist
TouchContainer
 Inherited
clone():*
Clone method
TouchContainer
  
dispose():void
[override] Destructor
LiveVideo
 Inherited
getElementById(id:String):*
Searches CML childList by id.
TouchContainer
 Inherited
getElementsByClassName(className:String):Array
Searches the CML childList by className.
TouchContainer
 Inherited
getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class.
TouchContainer
  
init():void
[override] Initializes the configuration and display of live video and audio.
LiveVideo
 Inherited
loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number.
TouchContainer
 Inherited
makeGestureList(value:XMLList):Object
Creates gestureList object from XML
TouchContainer
 Inherited
parseCML(cml:XMLList):XMLList
Parse cml for local layouts.
TouchContainer
 Inherited
postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine.
TouchContainer
 Inherited
querySelector(selector:String):*
Searches the CML childList by selector.
TouchContainer
 Inherited
querySelectorAll(selector:*):Array
Search the CML childList by selector.
TouchContainer
 Inherited
removeChild(child:DisplayObject):DisplayObject
[override] Removes child from display list and, if not already removed, the child list
TouchContainer
 Inherited
removeChildAt(index:int):DisplayObject
[override] Removes child from display list and, if not already removed, the child list
TouchContainer
 Inherited
removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void
[override] Removes children from display list and, if not already removed, the child list
TouchContainer
 Inherited
saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number.
TouchContainer
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
TouchContainer
 Inherited
method sets the dimensions of each child
TouchContainer
  
stop():void
stops livevideo.
LiveVideo
  
testMic(event:ActivityEvent):void
A Microphone object dispatches an ActivityEvent object whenever microphone reports that it has become active.
LiveVideo
 Inherited
tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index.
TouchContainer
 Inherited
Updates child padding within this container
TouchContainer
 Inherited
Updates child percent dimensions within this container
TouchContainer
 Inherited
updateProperties(state:* = 0):void
Updates properties from state.
TouchContainer
 Inherited
Updates child relative positions within this container
TouchContainer
Property Detail
_cameraproperty
public var _camera:VideoCamera

defines camera element.

_microphoneproperty 
public var _microphone:Microphone

defines the mic object.

camproperty 
public var cam:Camera

cameraproperty 
camera:*

sets the camera element.


Implementation
    public function get camera():*
    public function set camera(value:any):void
heightproperty 
height:Number[override]

sets the height of the video


Implementation
    public function get height():Number
    public function set height(value:Number):void
micproperty 
public var mic:Microphone

microphoneproperty 
microphone:*

sets the microphone element.


Implementation
    public function get microphone():*
    public function set microphone(value:any):void
netConnectionproperty 
public var netConnection:NetConnection

Defines net connection object.

netstreamproperty 
public var netstream:NetStream

Defines netstream object.

videoproperty 
public var video:Video

defines the video element

widthproperty 
width:Number[override]

setd the width of the video


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
LiveVideo()Constructor
public function LiveVideo()

LiveVideoElement Constructor.

Method Detail
dispose()method
override public function dispose():void

Destructor

init()method 
override public function init():void

Initializes the configuration and display of live video and audio.

stop()method 
public function stop():void

stops livevideo.

testMic()method 
public function testMic(event:ActivityEvent):void

A Microphone object dispatches an ActivityEvent object whenever microphone reports that it has become active.

Parameters

event:ActivityEvent