MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações Página 235

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 234
44
Example
In the following example, when the user clicks the button, Flash publishes and plays a live stream
if the microphone is not muted.
on (press)
{
// If the user mutes microphone, display offline notice.
// Else, publish and play live stream from microphone.
if(myMic.muted) {
_root.debugWindow+="Microphone offline." + newline;
} else {
// Publish the microphone data by calling
// the root function pubLive().
_root.pubLive();
// Play what is being published by calling
// the root function playLive().
_root.playLive();
}
}
See also
Microphone.get, Microphone.onStatus
Microphone.name
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.name
Description
Read-only property; a string that specifies the name of the current sound capture device, as
returned by the sound capture hardware.
Example
The following example displays the name of the default microphone in the Output window.
myMic = Microphone.get();
trace("The microphone name is: " + myMic.name);
See also
Microphone.get, Microphone.names
Vista de página 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 368 369

Comentários a estes Manuais

Sem comentários