
42
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Example
The following example outputs a client’s statistics:
function testStats(client){
var stats = client.getStats();
for(var prop in stats){
trace("stats." + prop + " = " + stats[prop]);
}
}
application.onConnect = function(client){
this.acceptConnection(client);
testStats(client);
};
Client.id
clientObject.id
Read-only; a string that uniquely identifies the client.
Property Description
bytes_in Total number of bytes received by this application instance.
bytes_out Total number of bytes sent from this application instance.
msg_in Total number of RTMP messages received.
msg_out Total number of RTMP messages sent.
msg_dropped Total number of dropped RTMP messages.
ping_rtt Length of time the client takes to respond to a ping message.
audio_queue_msgs Current number of audio messages in the queue waiting to be delivered to the client.
video_queue_msgs Current number of video messages in the queue waiting to be delivered to the client.
so_queue_msgs Current number of shared object messages in the queue waiting to be delivered to the client.
data_queue_msgs Current number of data messages in the queue waiting to be delivered to the client.
dropped_audio_msgs Number of audio messages that were dropped.
dropped_video_msgs Number of video messages that were dropped.
audio_queue_bytes Total size of all audio messages (in bytes) in the queue waiting to be delivered to the client.
video_queue_bytes Total size of all video messages (in bytes) in the queue waiting to be delivered to the client.
so_queue_bytes Total size of all shared object messages (in bytes) in the queue waiting to be delivered to the client.
data_queue_bytes Total size of all data messages (in bytes) in the queue waiting to be delivered to the client.
dropped_audio_bytes Total size of all audio messages (in bytes) that were dropped.
dropped_video_bytes Total size of all video messages (in bytes) that were dropped.
bw_out Current downstream bandwidth (outbound from the server).
bw_in Current upstream bandwidth (inbound to the server) .
client_id A unique ID issued by the server for this client.
Commentaires sur ces manuels