Stream.play - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Usage
myStream.onStatus = function([infoObject]) {
// Insert code here
};
Parameters
An optional parameter defined according to the status message. For details about
infoObject
this parameter, see the Appendix, "Server-Side Information Objects," on page 67.
Returns
Nothing.
Description
Event handler; invoked every time the status of a Stream object changes. For example, if you play
a file in a stream,
and ends, when recording starts, and so on.
Example
This example defines a function that executes whenever the
s = Stream.get("foo");
s.onStatus = function(info){
// insert code here
};

Stream.play

Availability
Flash Communication Server MX.
Usage
Stream.play(streamName, [startTime, length, reset, remoteConnection])
Parameters
The name of any published live stream or recorded stream.
streamName
The start time of the stream playback, in seconds. If no value is specified, it is set to
startTime
-2. If
startTime
. If no live stream is available, the server tries to play a recorded stream with the name
streamName
specified in
streamName
name specified in
-1, the server attempts to play a live stream with the name specified in
a publisher if no specified live stream is available. If
server plays the recorded stream with the name specified in
given. If no recorded stream is found, the
-1 is specified, the server interprets it as -2. This is an optional parameter.
The length of play, in seconds. For a live stream, a value of -1 plays the stream as long as
length
the stream exists. Any positive value plays the stream for the corresponding number of seconds.
For a recorded stream, a value of -1 plays the entire file, and a value of 0 returns the first video
frame. Any positive number plays the stream for the corresponding number of seconds. By
default, the value is -1. This is an optional parameter.
60
is invoked. Use
Stream.onStatus
is -2, the server tries to play a live stream with the name specified in
. If no recorded stream is found, the server creates a live stream with the
and waits for someone to publish to that stream. If
streamName
Stream.onStatus
Stream.onStatus
is greater than or equal to 0, the
startTime
streamName
method is ignored. If a negative value other than
play
to check when play starts
event is invoked:
startTime
and waits for
streamName
, starting from the time
is

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents