
13
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Deploying the server
Last updated 11/28/2012
3
Use the following syntax in a client-side
NetConnection.connect()
call to make an implicit connection to an
edge server:
rtmp://
edge/app/appinstance
Connect edge servers in a chain
❖
You can chain together any number of edges when you make connections to the origin server. Use the following
syntax to chain two explicit edges to direct connection requests to the origin server:
rtmp://
edge1/
?rtmp://
edge2
/?rtmp://
origin/app/inst
As the connection moves through each edge in the chain, the server consumes the first token in the string. For
example, after making the connection to
edge1
, the connection string changes to:
rtmp://
edge2
/?rtmp://
origin/app/inst
Note:
You can specify the RTMPT protocol only for the edges, not for the origin.
When you use URL decoration to chain edges, Flash Player 7 and earlier versions may have problems with shared
objects because of the embedded question mark (?) character in the URL. Call the following function to encode or
escape the question marks from the URL before passing the URL to the shared object:
function escapeURI(uri) {
index = uri.indexOf('?');
if (index == -1) return uri;
prefix = uri.substring(0, index);
uri = uri.substring(index);
return = escape(uri);
}
Deploying 64-bit servers
Flash Media Server installs on 32-bit and 64-bit operating systems. The 64-bit server uses addressable memory space
greater than 4GB. This enables Flash Media Server to use a larger file cache which in turn reduces disk IO.
To deploy 64-bit servers, know the following:
•
You can use any combination of 64-bit and 32-bit edge and origin servers in a network topology.
•
To serve on-demand media at the highest possible performance, increase the size of the recoded media cache.
•
If you have created custom C++ plug-ins for a 32-bit system, they do not work with a 64-bit system. To use 32-bit
plug-ins on a 64-bit server, recompile the plug-in with the 64-bit libraries.
More Help topics
“
Configure a 64-bit server
” on page 21