MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 235

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag