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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 160
Application Development Tips and Tricks 83
Stream object
If you want to delete the FLV and IDX files associated with a recorded stream, you must use
server-side code:
s = Stream.get("foo");
if (s)
{
s.clear();
}
Microphone object
This section includes recommendations to help you optimize your use of the Microphone object,
including tips on avoiding audio feedback.
Avoiding audio feedback
If youre using a microphone with external speakers and a reasonably high gain, youre likely to
incur audio feedback problems. To reduce feedback from speakers, Flash Communication Server
implements echo suppression. To use echo suppression, use the following command:
myMicrophone.useEchoSuppression(true);
This should maintain a comfortable input level without transmitting too much echo from your
speakers.
Because echo suppression removes only a portion of the output signal from the users input, you
might still experience feedback if your microphone is too close to your speaker. To avoid
feedback, try following these guidelines:
Lower your speaker volume.
Move the microphone and speakers farther apart.
Troubleshoot your hardware setup for proper installation and settings.
Use a headset.
Keeping the microphone open
To save bandwidth, Flash Communication Server by default turns off the microphone when it is
not being used. However, you might want to keep it on in your application—for example, to
assure that there is never any delay when the microphone is activated. To do so, use the command
my_mic.setSilenceLevel(0).
Video object
This section includes recommendations to help you optimize your use of the Video object,
including tips on dynamically creating video objects.
Creating video objects dynamically
You can add video objects to your application only from inside the Flash MX authoring
environment, by dragging an embedded video object from the Library to the Stage. However, if
you want to implement video objects from within your ActionScript code, you can do so by
embedding them in a movie clip. This technique lets you create and remove video objects
dynamically using
duplicateMovieClip() and removeMovieClip().
Seitenansicht 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare