40
Server Management ActionScript Language Reference
getLiveStreamStats()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
getLiveStreamStats(
app_instance
,
stream_name
)
Parameters
app_instance
A string that contains the name of the instance of the application, in the
form
application_name
/
instance_name
.
stream_name
A string that contains the name of the stream.
Returns
If the call succeeds, the server sends a reply information object with a
level
property of
status
, a
code
property of
NetConnection.Call.Success
, and a
data
property that is an
object. The
data
object has the following properties:
If the call fails, the server sends a reply information object with a
level
property of
error
and a
code
property of
NetConnection.Call.Failed
or a more specific value, if available.
Some objects might also have a
description
property that contains a string describing the
cause of the failure.
Property
Description
publisher
Object; publisher statistics. The object has the following properties:
name
: String; the name of the published live stream.
time
: Date object; time that the stream was published. This property is a
duplicate of
publish_time
and exists for backwards compatibility.
type
: String; the type of stream for the publisher. The value is
"publishing"
.
client
: Number; the client ID of the publisher.
stream_id
: Number; the stream ID of the publisher.
publish_time
: Date object; time that the stream was published.
client_type
: String; the string type of the publishing client.
publish_time
: Date object; time that the stream was published.
subscribers
Array of subscriber statistics. The array contains a
subscriber
property that is
an object containing the following properties:
client
: Number; user ID.
subscribe_time
: Date object; the time that the user subscribed to the stream.