MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 241

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 240
50
Silence values correspond directly to activity values. Complete silence is an activity value of 0.
Constant loud noise (as loud as can be registered based on the current gain setting) is an activity
value of 100. After gain is appropriately adjusted, your activity value is less than your silence value
when youre not talking; when you are talking, the activity value exceeds your silence value.
This method is similar in purpose to
Camera.setMotionLevel; both methods are used to specify
when the
onActivity event handler should be invoked. However, these methods have a
significantly different impact on publishing streams:
Camera.setMotionLevel is designed to detect motion and does not affect bandwidth usage.
Even if a video stream does not detect motion, video is still sent.
Microphone.setSilenceLevel is designed to optimize bandwidth. When an audio stream
is considered silent, no audio data is sent. Instead, a single message is sent, indicating that
silence has started.
Example
The following example changes the silence level based on the user’s input. The button has the
following code attached:
on (press)
{
this.makeSilenceLevel(this.silenceLevel);
}
The makeSilenceLevel() function called by the button continues:
function makeSilenceLevel(s)
{
this.obj.setSilenceLevel(s);
this.SyncMode();
this.silenceLevel= s;
}
See also the example for Camera.setMotionLevel.
See also
Microphone.activityLevel, Microphone.onActivity, Microphone.setGain,
Microphone.silenceLevel, Microphone.silenceTimeout
Microphone.setUseEchoSuppression
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.setUseEchoSuppression(suppress)
Parameters
suppress A Boolean value indicating whether echo suppression should be used (true) or
not (
false).
Returns
Nothing.
Seitenansicht 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare