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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 103
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
101
function onProcessCmd(cmd){
var streamLen = Stream.length("mp4:beethoven");
trace("Length: " + streamLen + "\n");
}
Stream.name
myStream.name
Read-only; contains a unique string associated with a live stream. You can use this property as an index to find a
stream within an application.
Availability
Flash Communication Server 1
Example
The following function takes a Stream object as a parameter and returns the name of the stream:
function getStreamName(myStream){
return myStream.name;
}
Stream.onStatus()
myStream.onStatus = function([infoObject]) {}
Invoked every time the status of a Stream object changes. For example, if you play a file in a stream,
Stream.onStatus() is invoked. Use Stream.onStatus() to check when play starts and ends, when recording
starts, and so on.
Availability
Flash Communication Server 1
Parameters
infoObject An Object with code and level properties that contain information about a stream. This parameter
is optional, but it is usually used. The Stream information object contains the following properties:
The following table describes the
code and level property values:
Property Meaning
clientid A unique number identifying each client.
code A string identifying the event that occurred.
description Detailed information about the code. Not every information object includes this property.
details The stream name.
level A string indicating the severity of the event.
Vedere la pagina 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 154 155

Commenti su questo manuale

Nessun commento