
Server-Side Communication ActionScript 59
Example
This example gets the stream foo and assigns it to the variable playStream. It then calls the
Stream.play method from playStream.
function onProcessCmd(cmd){
var playStream = Stream.get("foo");
playStream.play("file1", 0, -1);
}
Stream.length
Availability
Flash Communication Server MX.
Usage
Stream.length(name)
Parameters
name Name of a recorded stream.
Returns
The length of a recorded stream in seconds.
Description
Method (static); returns the length of a recorded stream in seconds. If the stream requested is not
found, the return value is 0.
Example
This example gets the length of the stream foo and assigns it to the variable streamLen:
function onProcessCmd(cmd){
var streamLen = Stream.length("foo");
trace("Length: " + streamLen + "\n");
}
Stream.name
Availability
Flash Communication Server MX.
Usage
Stream.name
Description
Property (read-only); contains a unique string associated with a live stream. You can also use this
as an index to find a stream within an application.
Stream.onStatus
Availability
Flash Communication Server MX.
Commentaires sur ces manuels