
Server-Side Communication ActionScript 65
Stream (object)
The Stream object lets you handle each stream in a Flash Communication Server application. A
stream is a one-way connection between the Flash Player and the Flash Communication Server, or
between two servers. The Flash Communication Server automatically creates a Stream object with
a unique name when
NetStream.play or NetStream.publish are called in a client-side script.
You can also create a stream in server-side ActionScript by calling Stream.get. A user can access
multiple streams at the same time, and there can be hundreds or thousands of Stream objects
active at the same time.
You can use the properties and methods of the Stream object to shuffle streams in a playlist, pull
streams from other servers, and play and record streams.
You can also use the Stream object to play MP3 files over a stream, as well as ID3 tags associated
with MP3 files.
You can create other Stream properties of any legal ActionScript type, including references to
other ActionScript objects, for a particular instance of the Stream object. The properties are
available until the stream is removed from the application.
For more information about streams, see the NetStream (object) entry in the Client-Side
Communication ActionScript Dictionary.
Property summary for the Stream object
Method summary for the Stream object
Event handler summary for the Stream object
Property (read-only) Description
Stream.bufferTime Indicates how long to buffer messages before a stream is played.
Stream.name The unique name of a live stream.
Method Description
Stream.clear Deletes a stream previously recorded by the server.
Stream.get Returns a reference to a Stream object. This is a static method.
Stream.length Returns the length of a recorded stream in seconds. This is a static method.
Stream.play Controls the data source of the Stream object.
Stream.record Records all the data going into the stream.
Stream.send Sends a call with parameters to all subscribers on a stream.
Stream.setBufferTime Sets the length of the buffer time in seconds.
Event handler Description
Stream.onStatus Called when there is a change in status.
Commentaires sur ces manuels