MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manual de usuario Pagina 36

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 35
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
33
} 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 Interactive Server 3 and Flash Media Development Server 3
Example
The following server-side code sets the
audioSampleAccess directory to publicdomain:
application.onConnect = function(client) {
// Anyone can play free content, which is all streams placed under the
// samples/, publicdomain/ and contrib/ folders.
client.readAccess = "samples;publicdomain;contrib";
// Paying customers get to watch more streams.
if ( isPayingCustomer(client))
client.readAccess += "nonfree;premium";
// Content can be saved (user recorded streams) to contrib/ folder.
client.writeAccess = "contrib";
// Anyone can gain access to an audio snapshot of the publicdomain/ folder.
client.audioSampleAccess = "publicdomain";
// Paying customers can also get a video snapshot of the publicdomain/ folder.
if (isPayingCustomer(client))
client.videoSampleAccess = "publicdomain";
}
See also
Client.videoSampleAccess
Client.call()
clientObject.call(methodName, [resultObj, [p1, ..., pN]])
Executes a method on a client or on another server. The remote method may return data to the resultObj
parameter, if provided. Whether the remote agent is a client or another server, the method is called on the remote
agents NetConnection object.
Availability
Flash Communication Server 1
Vista de pagina 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 154 155

Comentarios a estos manuales

Sin comentarios