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

  • 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 256
66
Parameters
source The source of the audio to be transmitted. Valid values are a Microphone object
and
null.
Returns
Nothing.
Description
Method; specifies whether audio should be sent over the stream (from a Microphone object
passed as
source) or not (null passed as source). This method is available only to the publisher
of the specified stream.
You can call this method before or after you call the
NetStream.publish method and actually
begin transmitting. Subscribers who want to hear the audio must call a NetStream.play method.
Subscribers can also attach their incoming audio to a movie clip and then create a Sound object to
control some aspects of the sound. For more information, see
MovieClip.attachAudio.
Example
The following code attaches a microphone to a network stream.
srcStream.attachAudio(myMic);
See also
Microphone (object), MovieClip.attachAudio, NetStream.attachVideo,
NetStream.publish, NetStream.receiveAudio
NetStream.attachVideo
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.attachVideo(source | null [, snapShotMilliseconds])
Parameters
source The source of the video transmission. Valid values are a Camera object (which starts
capturing video) and null. If you pass null, Flash stops capturing video, and any additional
parameters you send are ignored.
snapShotMilliseconds An optional integer that specifies whether the video stream is
continuous, a single frame, or a series of single frames used to create time-lapse photography.
If this argument is omitted, Flash captures all video until you issue
myStream.attachVideo(null).
If you pass 0, Flash captures only a single video frame. Use this value to transmit “snapshots
within a preexisting stream.
Note: Flash interprets invalid, negative, or nonnumeric arguments as 0.
If you pass a positive number, Flash captures a single video frame and then appends a pause of
length
snapShotMilliseconds as a “trailer” on the snapshot. Use this value to create time-
lapse photography effects (see the description below.)
Vue de la page 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 368 369

Commentaires sur ces manuels

Pas de commentaire