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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 266
76
Example
The following example shows how to publish and record a video, and then play it back.
connection = new NetConnection();
connection.connect("rtmp://myServer.myDomain.com/appName/appInstance");
srcStream = new NetStream(connection);
srcStream.publish("stephen", "record");
srcStream.attachVideo(Camera.get());
// To stop publishing and recording
srcStream.publish(false);
// To play the recorded stream
srcStream.play("stephen");
See also
NetConnection.connect, NetStream.play, Video.attachVideo
NetStream.receiveAudio
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.receiveAudio(receive)
Parameters
receive A Boolean value that specifies whether incoming audio plays on the specified stream
(
true) or not (false). The default value is true.
Returns
Nothing.
Description
Method; specifies whether incoming audio plays on the specified stream. This method is available
only to clients subscribed to the specified stream, not to the streams publisher.
You can call this method before or after you call the
NetStream.play method and actually begin
receiving the stream. For example, you can attach these methods to a button the user clicks to
mute and unmute the incoming audio stream.
See also
NetStream.receiveVideo
NetStream.receiveVideo
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.receiveVideo(receive | FPS)
Seitenansicht 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare