
48
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Availability
Flash Communication Server 1
Example
The following example checks the connection protocol used by a client upon connection to the application:
application.onConnect(clientObj){
if(clientObj.protocol == "rtmp") {
trace("Client connected over RTMP");
} else if(clientOjb.protocol == "rtmpt") {
trace("Client connected over RTMP tunneled over HTTP");
}
}
Client.protocolVersion
clientObject.protocolVersion
Read-only; A string indicating the version of the protocol used by the client to connect to the server. This value
matches the value in the
c-proto-ver field in the Access log.
See Fields in access logs.
Availability
Flash Media Server 4
Client.readAccess
clientObject.readAccess
Gives clients read access to directories containing shared objects and streams. You cannot specify file names, you can
specify only a directory or a path to a directory (for example, "directory" or "directory/subdir/subdir2"). The directory
you specify grants read access to that directory and to all its subdirectories. To give a client read access to multiple
directories, list the directories in a string delimited by semicolons.
The default value is "/". This value grants read access to the directories in which the server is configured to look for
streams and shared objects.
Note: Adobe recommends that you store either streams or shared objects in a directory, but not both.
A directory you specify is relative to the directory in which the server is configured to store streams or shared objects
for that application instance. If you use a virtual directory or a storage directory, the
readAccess value is relative to
that location.
Protocol Description
rtmp RTMP over a persistent socket connection.
rtmpt RTMP tunneled over HTTP.
rtmps RTMP over an SSL (Secure Socket Layer) connection.
rtmpe An encrypted RTMP connection.
rtmpte An encrypted RTMP connection tunneled over HTTP.
rtmfp Real-Time Media Flow Protocol.
Komentáře k této Příručce