The Stream object gives you control over all streams in the Application instance. This object lets you chain servers together to increase user and bandwidth capacity. It also allows you to create play lists, or control the source of any stream. A stream is a one-way flow of data over a NetConnection. To enable Code Hints and Code Completion in Dreamweaver MX, use the suffix _stream in the name of the SharedObject variable. Stream MethodsThe Stream methods are as follows : Stream.clear()Removes a recorded stream (FLV) file created by either the server or a client from the application instance. Stream.get(name)Creates or references a stream by name. This method also insatiates the Stream object to your ActionScript variable.
Stream.length(name)Returns the length (in seconds) of a pre-recorded stream (FLV). You can use this method without the .get method to return the length of a pre-recorded stream that is not being accessed.
Stream.play(streamName, [startTime, length, reset, remoteConnection])The Play command publishes a single recorded stream, or can publish a live stream from a local or remote source. Multiple play methods can be strung together to create a play list.
Stream.record(recordappendfalse)Records the stream to an FLV file. The contents of the stream are determined by a series of play methods. This stream can be used later for playback. The name of the FLV file is determined by the .get method.
Stream.send(handlerName, [p1, , pN])Used to broadcast a message to all subscribers of the stream. This method invokes functions defined in the stream instance on each subscribed client.
stream.setBufferTime(seconds)Allocates the amount of memory to handle pre-loading of a stream before publishing (playing). This command sends a message to the stream publisher source that the size has been changed.
Stream Propertiesstream.buffertime returns the length of time in seconds that a stream will be stored before playing begins. Stream.name returns the unique string used for a live stream. Stream EventStream.onStatus invoked when the status of the subscribed stream changes. |