Client-Side Communication ActionScript > Microphone.silenceTimeout

 

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