MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual de usuario Pagina 40

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 39
37
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Client.agent
clientObject.agent
Read-only; the version and platform of the client.
When a client connects to the server, the format of Client.agent is as follows:
Operating_System Flash_Player_Version
For example, if Flash Player version 9.0.45.0 is running on Windows®, the value of Client.agent is:
"WIN 9,0,45,0".
When a connection is made to another Adobe Media Server, the format of Client.agent is as follows:
Server_Name/Server_Version Operating_System/Operating_System_Build
For example, if the server version is 3.0.0 and it’s running on Windows Server® 2003, the value of Client.agent is:
"FlashCom/3.0.0 WIN/5.1.2600".
Availability
Flash Communication Server 1
Example
The following example checks the agent property against the string "WIN" and executes different code depending on
whether they match. This code is written in an
onConnect() function:
function onConnect(newClient, name){
if (newClient.agent.indexOf("WIN") > -1){
trace ("Window user");
} else {
trace ("non Window user.agent is" + newClient.agent);
}
}
Client.audioSampleAccess
clientObject.audioSampleAccess
Enables Flash Player to access raw, uncompressed audio data from streams in the specified folders.
Call the
SoundMixer.computeSpectrum()
method in client-side ActionScript 3.0 to read the raw sound data for a
waveform that is currently playing. For more information, see the
SoundMixer.computeSpectrum()
entry in the
ActionScript 3.0 Language and Components Reference and “Accessing raw sound data” in Programming ActionScript 3.0.
Availability
Flash Media Server 3
Example
The following server-side code sets the audioSampleAccess directory to publicdomain:
Vista de pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 171 172

Comentarios a estos manuales

Sin comentarios