Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > Camera class > Camera.activityLevel | |||
public activityLevel : Number [read-only]
Property (read-only); a numeric value that specifies the amount of motion the camera is detecting. Values range from 0 (no motion is being detected) to 100 (a large amount of motion is being detected). The value of this property can help you determine if you need to pass a setting to Camera.setMotionLevel().
If the camera is available but is not yet being used because neither Video.attachVideo() nor NetStream.attachVideo() has been called, this property is set to -1.
If you are streaming only uncompressed local video--that is, you are not streaming the video within a NetStream object and you have not called Camera.setLoopback()(true)--this property is set only if you have assigned a function to the Camera.onActivity event handler. Otherwise, it is undefined.
Camera.motionLevel, Camera.onActivity, Camera.setMotionLevel()
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000527.html