MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual do Utilizador Página 45

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 44
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.
Vista de página 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 171 172

Comentários a estes Manuais

Sem comentários