
52
Microphone.silenceTimeout
Availability
• Flash Player 6.
• Flash Communication Server MX (not required).
Usage
activeMicrophone.silenceTimeout
Description
Read-only property; a numeric value representing the number of milliseconds between the time
the microphone stops detecting sound and the time
Microphone.onActivity(false) is
invoked. The default value is 2000 (2 seconds).
To set this value, use
Microphone.setSilenceLevel.
Example
The following example sets the timeout to two times its current value.
myMic.setSilenceLevel(myMic.silenceLevel, myMic.silenceTimeOut * 2);
See also
Microphone.setSilenceLevel
Microphone.useEchoSuppression
Availability
• Flash Player 6.
• Flash Communication Server MX (not required).
Usage
activeMicrophone.useEchoSuppression
Description
Read-only property; a Boolean value of true if echo suppression is enabled, false otherwise. The
default value is false unless the user has selected Reduce Echo in the Flash Player Microphone
Settings panel.
Example
The following example checks for echo suppression and turns it on if it is off.
_root.myMic.onActivity = function(active) {
if (active == true) {
if (_root.myMic.useEchoSuppression == false) {
_root.myMic.setUseEchoSuppression(true);
}
}
}
See also
Microphone.setUseEchoSuppression
Kommentare zu diesen Handbüchern