MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 155

Server-side actionscript language reference
Table of Contents

Advertisement

The following example creates a playlist of three MP3 files (
and
) and plays each file in turn over the live stream
chopin.mp3
application.myStream = Stream.get("foo");
if(application.myStream) {
application.myStream.play("mp3:beethoven", 0);
application.myStream.play("mp3:mozart", 0, false);
application.myStream.play("mp3:chopin.mp3", 0, false);
}
In the following example, data messages in the recorded stream file
the intervals which they were originally recorded.
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1);
}
In the following example, data messages in the recorded stream file
once, rather than at the intervals which they were originally recorded.
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1, 2);
}
Stream.record()
Availability
Flash Communication Server MX 1.0.
Usage
myStream.record(flag)
Parameters
This parameter can have the value
flag
the data file is overwritten if it exists. If the value is
the end of the existing file. If the value is
value is
.
record
Returns
A Boolean value of
true
Description
Method; records all the data going through a Stream object.
record
false
if the recording succeeds;
beethoven.mp3
foo
log.flv
log.flv
,
, or
append
false
, the incoming data is appended to
append
, any previous recording stops. By default, the
otherwise.
false
,
mozart.mp3
:
are returned at
are returned all at
. If the value is
record
Stream class
,
,
155

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents