Package | com.gestureworks.cml.element |
Class | public class LiveVideo |
Inheritance | LiveVideo Container ContainerFactory ElementFactory flash.display.Sprite |
var livevideo:LiveVideo = new LiveVideo; livevideo.camera = new Camera(); livevideo.mic = new Microphone(); addChild(livevideo); livevideo.init();
Property | Defined By | ||
---|---|---|---|
alpha : Number [override] [write-only]
sets the alpha for display objects
| ElementFactory | ||
blur : Boolean
Sets the drop shadow effect
| ElementFactory | ||
bottom : Number
sets the bottom value
| ElementFactory | ||
cam : Camera | LiveVideo | ||
_camera : Camera
defines camera element. | LiveVideo | ||
camera : *
sets the camera element. | LiveVideo | ||
childList : ChildList [read-only]
store the child list
| ContainerFactory | ||
class_ : String
Object's css class;
| ElementFactory | ||
className : String
sets the class name of displayobject
| ElementFactory | ||
cmlIndex : int
sets the cml index
| ElementFactory | ||
debugStyle : *
sets the debug style
| ElementFactory | ||
dimensionsTo : String
sets the dimensions of the container
| ContainerFactory | ||
displayEvents : String
Use for dispatch completes. | ElementFactory | ||
dropShadow : Boolean
Sets the drop shadow effect
| ElementFactory | ||
height : Number [override]
sets the height of the video
| LiveVideo | ||
heightPercent : String
sets the height percent of display object
| ElementFactory | ||
horizontalCenter : Number
sets the horizontal center of display object
| ElementFactory | ||
id : String
sets the id of child
| ElementFactory | ||
index : int
sets the index of display object
| ElementFactory | ||
infoSource : String
sets info source
| ContainerFactory | ||
layout : *
Sets the layout of the container
| Container | ||
layoutComplete : Function
Sets the function to call when the layout is complete
| Container | ||
layoutList : Dictionary
Defines the layoutlist
| Container | ||
layoutUpdate : Function
Sets the function to call when the layout updates
| Container | ||
left : Number
sets left value
| ElementFactory | ||
mic : Microphone | LiveVideo | ||
_microphone : Microphone
defines the mic object. | LiveVideo | ||
microphone : *
sets the microphone element. | LiveVideo | ||
netConnection : NetConnection
Defines net connection object. | LiveVideo | ||
netstream : NetStream
Defines netstream object. | LiveVideo | ||
paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | Container | ||
paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | Container | ||
paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | Container | ||
paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | Container | ||
position : String
Sets the position
| Container | ||
propertyStates : Array Deprecated: Please Use state | ElementFactory | ||
right : Number
sets the right value
| ElementFactory | ||
scale : Number
Sets both the x and y scale values
| ElementFactory | ||
scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
state : Array
property states array
| ElementFactory | ||
top : Number
sets top value
| ElementFactory | ||
verticalCenter : Number
sets the vertical center of display object
| ElementFactory | ||
video : Video
defines the video element
| LiveVideo | ||
width : Number [override]
setd the width of the video
| LiveVideo | ||
widthPercent : String
sets the percent of width of display object
| ElementFactory |
Method | Defined By | ||
---|---|---|---|
LiveVideoElement Constructor. | LiveVideo | ||
addAllChildren():void
This method searches the childlist and add the children
| ContainerFactory | ||
addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
TODO: This mechanism should be abstracted to better syncrhonize child and display lists
| Container | ||
applyLayout(value:* = null):void
Apply the containers layout
| Container | ||
childToList(id:String, child:*):void
this method append to the childlist
| ContainerFactory | ||
clone():*
Returns clone of self
| ElementFactory | ||
displayComplete():void [override]
CML display initialization callback
| LiveVideo | ||
dispose():void [override]
Dispose method
| LiveVideo | ||
getIndex(index:int):*
returns childlist index
| Container | ||
getKey(key:String):*
returns the childlist key
| Container | ||
hideIndex(index:int):void
hides the childlist index
| Container | ||
hideKey(key:String):void
hides the childlist key
| Container | ||
init():void [override]
Initializes the configuration and display of live video and audio. | LiveVideo | ||
parseCML(cml:XMLList):XMLList [override]
Parse cml for local layouts. | Container | ||
postparseCML(cml:XMLList):void
post parses the cml file
| ElementFactory | ||
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | Container | ||
setDimensionsToChild():void
This method sets the dimensions of childlist
| ContainerFactory | ||
showIndex(index:int):void
shows the childlist index
| Container | ||
showKey(key:String):void
shows the childlist key
| Container | ||
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 | ||
updateProperties(state:Number = 0):void
this method updates the properties
| ElementFactory |
_camera | property |
public var _camera:Camera
defines camera element.
_microphone | property |
public var _microphone:Microphone
defines the mic object.
cam | property |
public var cam:Camera
camera | property |
camera:*
sets the camera element.
public function get camera():*
public function set camera(value:any):void
height | property |
height:Number
[override] sets the height of the video
public function get height():Number
public function set height(value:Number):void
mic | property |
public var mic:Microphone
microphone | property |
microphone:*
sets the microphone element.
public function get microphone():*
public function set microphone(value:any):void
netConnection | property |
public var netConnection:NetConnection
Defines net connection object.
netstream | property |
public var netstream:NetStream
Defines netstream object.
video | property |
public var video:Video
defines the video element
width | property |
width:Number
[override] setd the width of the video
public function get width():Number
public function set width(value:Number):void
LiveVideo | () | Constructor |
public function LiveVideo()
LiveVideoElement Constructor.
displayComplete | () | method |
override public function displayComplete():void
CML display initialization callback
dispose | () | method |
override public function dispose():void
Dispose method
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 |