Package | sekati.media |
Class | public class CameraDevice |
Inheritance | CameraDevice CoreSprite flash.display.Sprite |
Implements | IDevice |
Camera
control DisplayObject
to the API.
See also
Property | Defined by | ||
---|---|---|---|
activityLevel : Number [read-only]
The amount of activity the device is detecting.
| CameraDevice | ||
bandwidth : int
he maximum amount of bandwidth the outgoing video feed can use, in bytes per second.
| CameraDevice | ||
camera : Camera [read-only]
The attached camera driver instance.
| CameraDevice | ||
currentFPS : Number [read-only]
The rate at which the camera is capturing data, in frames per second.
| CameraDevice | ||
deviceIndex : int [read-only]
The index of the currently connected
Camera device driver. | CameraDevice | ||
deviceName : String [read-only]
The name of the currently connected
Camera device driver. | CameraDevice | ||
devices : Array [read-only]
The list of names of the available
Camera device drivers. | CameraDevice | ||
enabled : BooleanBoolean stub property which subclasses implement to control core
behavor availability such as interactivity, liquidity, drag-drop functionality. | CoreSprite | ||
fps : int
The devices current Frames Per Second.
| CameraDevice | ||
interactiveMode : Boolean
Specifies the mouse cursors modal state in the object as an interactive
target via:
buttonMode, mouseChildren & tabChildren . | CoreSprite | ||
loopback : Boolean
Indicates whether a local view of what the camera is capturing is compressed and decompressed (
true ),
as it would be for live transmission using Flash Media Server, or uncompressed (false ). | CameraDevice | ||
motionLevel : int
The amount of motion required to invoke the
activity event. | CameraDevice | ||
muted : Boolean [read-only]
Indicates whether the user has denied access to the device (
true ) or allowed
access (false ) in the Flash Player Privacy dialog box. | CameraDevice | ||
quality : int
The picture quality, determined by the amount of compression applied to each video frame.
| CameraDevice | ||
scale : Number
The
scale value. | CoreSprite | ||
timeout : int
The number of milliseconds which must elapse without activity to invoke the
activity event. | CameraDevice | ||
video : Video [read-only]
The attached camera driver's
Video instance. | CameraDevice | ||
videoHeight : int
The
Video output height (note this is different than the CameraDevice.height ). | CameraDevice | ||
videoWidth : int
The
Video output width (note this is different than the CameraDevice.width ). | CameraDevice |
Method | Defined by | ||
---|---|---|---|
CameraDevice(width:int = 320, height:int = 240, motionLevel:int = 50, fps:int = 15, timeout:int = 2000, bandwidth:int = 16384, quality:int = 0, autoPoll:Boolean = true)
CameraDevice Constructor
| CameraDevice | ||
addChildren(... args):void
Add multiple child
DisplayObject 's. | CoreSprite | ||
destroy():void
Clean up after thy self.
| CameraDevice | ||
pollDevice():void
Poll the
Camera device for a connection. | CameraDevice | ||
toString():String
Return reflective output.
| CoreSprite |
Method | Defined by | ||
---|---|---|---|
activityHandler(e:ActivityEvent):void
Responds to camera activity.
| CameraDevice | ||
connectDevice():void
Connect the
Camera to a Video stream. | CameraDevice | ||
invalidate():void
Request a redraw, use for deferred rendering.
| CoreSprite | ||
offStage(e:Event = null):void
Stub: Sprite has been removed from stage.
| CoreSprite | ||
onStage(e:Event = null):void
Stub: Sprite has been added to stage.
| CoreSprite | ||
promptDevice():void
Graceful degradation: a
Camera is available but the user either clicked deny or the device is busy. | CameraDevice | ||
statusHandler(e:StatusEvent):void
Respond to camera status.
| CameraDevice |
activityLevel | property |
activityLevel:Number
[read-only]
The amount of activity the device is detecting. Ranges from 0
(no activity
detected) to 100
(a large amount of activity detected).
public function get activityLevel():Number
bandwidth | property |
bandwidth:int
[read-write]
he maximum amount of bandwidth the outgoing video feed can use, in bytes per second. To specify that Flash Player video
can use as much bandwidth as needed to maintain the value of quality, pass 0
for bandwidth.
public function get bandwidth():int
public function set bandwidth(value:int):void
camera | property |
camera:Camera
[read-only]The attached camera driver instance.
Implementation public function get camera():Camera
currentFPS | property |
currentFPS:Number
[read-only]The rate at which the camera is capturing data, in frames per second.
Implementation public function get currentFPS():Number
deviceIndex | property |
deviceIndex:int
[read-only]
The index of the currently connected Camera
device driver.
public function get deviceIndex():int
deviceName | property |
deviceName:String
[read-only]
The name of the currently connected Camera
device driver.
public function get deviceName():String
devices | property |
devices:Array
[read-only]
The list of names of the available Camera
device drivers.
public function get devices():Array
fps | property |
fps:int
[read-write]The devices current Frames Per Second.
Implementation public function get fps():int
public function set fps(value:int):void
loopback | property |
loopback:Boolean
[read-write]
Indicates whether a local view of what the camera is capturing is compressed and decompressed (true
),
as it would be for live transmission using Flash Media Server, or uncompressed (false
).
public function get loopback():Boolean
public function set loopback(value:Boolean):void
motionLevel | property |
motionLevel:int
[read-write]
The amount of motion required to invoke the activity
event.
public function get motionLevel():int
public function set motionLevel(value:int):void
muted | property |
muted:Boolean
[read-only]
Indicates whether the user has denied access to the device (true
) or allowed
access (false
) in the Flash Player Privacy dialog box.
public function get muted():Boolean
quality | property |
quality:int
[read-write]
The picture quality, determined by the amount of compression applied to each video frame. Ranges from 1
(lowest quality, max compression) to 100
(high quality, no compression). For variable picture
quality, adjusted as needed to avoid exceeding bandwidth, pass 0
.
public function get quality():int
public function set quality(value:int):void
timeout | property |
timeout:int
[read-write]
The number of milliseconds which must elapse without activity to invoke the activity
event.
public function get timeout():int
public function set timeout(value:int):void
video | property |
video:Video
[read-only]
The attached camera driver's Video
instance.
public function get video():Video
videoHeight | property |
videoHeight:int
[read-write]
The Video
output height
(note this is different than the CameraDevice.height
).
public function get videoHeight():int
public function set videoHeight(value:int):void
videoWidth | property |
videoWidth:int
[read-write]
The Video
output width
(note this is different than the CameraDevice.width
).
public function get videoWidth():int
public function set videoWidth(value:int):void
CameraDevice | () | constructor |
public function CameraDevice(width:int = 320, height:int = 240, motionLevel:int = 50, fps:int = 15, timeout:int = 2000, bandwidth:int = 16384, quality:int = 0, autoPoll:Boolean = true)
CameraDevice Constructor
Parameterswidth:int (default = 320 ) — The requested capture width, in pixels.
|
|
height:int (default = 240 ) — The requested capture width, in pixels.
|
|
motionLevel:int (default = 50 ) — The amount of motion required to dispatch the activity |
|
fps:int (default = 15 ) — The requested rate at which the camera should capture data, in frames per second.
|
|
timeout:int (default = 2000 ) — How many milliseconds must elapse without activity before a activity event is dispatched.
|
|
bandwidth:int (default = 16384 ) — The maximum amount of bandwidth the outgoing video feed can use, in bytes per second. To specify that Flash Player video can use as much bandwidth as needed to maintain the value of quality, pass 0 for bandwidth.
|
|
quality:int (default = 0 ) — The picture quality, determined by the amount of compression applied to each video frame. Ranges from 1 (lowest quality, max compression) to 100 (high quality, no compression). For variable picture quality, adjusted as needed to avoid exceeding bandwidth, pass 0 .
|
|
autoPoll:Boolean (default = true ) — Determines whether the device is auto-polled for (true ) or not (false ).
|
activityHandler | () | method |
protected function activityHandler(e:ActivityEvent):void
Responds to camera activity.
Parameterse:ActivityEvent |
connectDevice | () | method |
protected function connectDevice():void
Connect the Camera
to a Video
stream.
destroy | () | method |
public override function destroy():void
Clean up after thy self.
pollDevice | () | method |
public function pollDevice():void
Poll the Camera
device for a connection.
promptDevice | () | method |
protected function promptDevice():void
Graceful degradation: a Camera
is available but the user either clicked deny or the device is busy.
statusHandler | () | method |
protected function statusHandler(e:StatusEvent):void
Respond to camera status.
Parameterse:StatusEvent |