MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 240

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 239
Client-Side Communication ActionScript 49
Returns
Nothing.
Description
Method; sets the rate, in kHz, at which the microphone should capture sound.
Example
The following example sets the microphone rate to the users preference (which you have assigned
to the
userRate variable) if it is one of the following values: 5, 8, 11, 22, or 44. If it is not, the
value is rounded to the nearest acceptable value that the sound capture device supports.
myMic.setRate(userRate);
See also
Microphone.rate
Microphone.setSilenceLevel
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.setSilenceLevel(level [, timeout])
Parameters
level An integer that specifies the amount of sound required to activate the microphone and
invoke
Microphone.onActivity(true). Acceptable values range from 0 to 100. The default
value is 10.
timeout An optional integer parameter that specifies how many milliseconds must elapse
without activity before Flash considers sound to have stopped and invokes
Microphone.onActivity(false). The default value is 2000 (2 seconds).
Returns
Nothing.
Description
Method; sets the minimum input level that should be considered sound and (optionally) the
amount of silent time signifying that silence has actually begun.
To prevent the microphone from detecting sound at all, pass a value of 100 for level;
Microphone.onActivity is never invoked.
To determine the amount of sound the microphone is currently detecting, use
Microphone.activityLevel.
Activity detection is the ability to detect when audio levels suggest that a person is talking. When
someone is not talking, bandwidth can be saved because there is no need to send the associated
audio stream. This information can also be used for visual feedback so that users know they (or
others) are silent.
Vue de la page 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 368 369

Commentaires sur ces manuels

Pas de commentaire