Example
This example gets the stream
method from
Stream.play
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 of a recorded stream.
name
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
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.
and assigns it to the variable
foo
.
playStream
and assigns it to the variable
foo
. It then calls the
playStream
streamLen
Server-Side Communication ActionScript
:
59
Need help?
Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers