Server-Side Communication ActionScript > Stream (object) |
![]() ![]() ![]() |
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 (read-only) Description Indicates how long to buffer messages before a stream is played. The unique name of a live stream.
Property summary for the Stream object
Method Description Deletes a stream previously recorded by the server. Returns a reference to a Stream object. This is a static method. Returns the length of a recorded stream in seconds. This is a static method. Controls the data source of the Stream object. Records all the data going into the stream. Sends a call with parameters to all subscribers on a stream. Sets the length of the buffer time in seconds.
Method summary for the Stream object
Event handler Description Called when there is a change in status.
Event handler summary for the Stream object
![]() ![]() ![]() |