MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 39

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 38
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
36
Example
The following example outputs a clients statisitics:
function testStats(){
var stats = client.getStats();
for(var prop in stats){
trace("stats." + prop + " = " + stats[prop]);
}
}
application.onConnect = function(client){
this.acceptConnection(client);
testStats();
};
Client.getStreamLength()
clientObject.getStreamLength(streamObj)
Returns the length of a stream, in seconds. Call this method from a client-side script and specify a response object
to receive the returned value.
Property Description
bytes_in Total number of bytes received.
bytes_out Total number of bytes sent.
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 upstream (client to server) bandwidth for this client.
bw_in Current downstream (server to client) bandwidth for this client.
client_id
A unique ID issued by the server for this client.
Vedere la pagina 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 154 155

Commenti su questo manuale

Nessun commento