Setmotionlevel (Camera.setmotionlevel Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

setMotionLevel (Camera.setMotionLevel method)

public setMotionLevel([motionLevel:Number], [timeOut:Number]) : Void
Specifies how much motion is required to invoke
sets the number of milliseconds that must elapse without activity before Flash considers
motion to have stopped and invokes
Video can be displayed regardless of the value of the sensitivity parameter. This
parameter determines only when and under waht circumstances
invoked -- not whether video is actually being captured or displayed.
To prevent the camera from detecting motion at all, pass a value of 100 for
Camera.onActivity
purposes--for example, to temporarily disable any actions set to occur when
Camera.onActivity
To determine the amount of motion the camera is currently detecting, use the
Camera.activityLevel
Motion sensitivity values correspond directly to activity values. Complete lack of motion
is an activity value of 0. Constant motion is an activity value of 100. Your activity value is
less than your motion sensitivity value when you're not moving; when you are moving,
activity values frequently exceed your motion sensitivity value.
This method is similar in purpose to
are used to specify when the
these methods have a significantly different impact on publishing streams:
Microphone.setSilenceLevel()
stream is considered silent, no audio data is sent. Instead, a single message is sent,
indicating that silence has started.
Camera.setMotionLevel()
usage. Even if a video stream does not detect motion, video is still sent.
Availability: ActionScript 1.0; Flash Player 6
Parameters
motionLevel:Number
required to invoke
Camera.onActivity(true)
default value is 50.
[optional] - A numeric parameter that specifies how many milliseconds
timeOut:Number
must elapse without activity before Flash considers activity to have stopped and invokes the
Camera.onActivity(false)
Camera.onActivity(false)
is never invoked. (You would probably use this value only for testing
is invoked.)
property.
Microphone.setSilenceLevel()
onActivity
is designed to optimize bandwidth. When an audio
is designed to detect motion and does not affect bandwidth
[optional] - A numeric value that specifies the amount of motion
event handler. The default value is 2000 (2 seconds).
Camera.onActivity(true)
event handler should be invoked. However,
. Acceptable values range from 0 to 100. The
. Optionally
.
Camera.onActivity
sensitivity
; both methods
Camera
is
;
401

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents