Adobe 65029121 - Flash Media Streaming Server Developer's Manual page 61

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

Use Flash Player version
You can protect your content from clients that aren't running in Flash Player, based on the user agent string received
from the connection. The user agent string identifies the platform and Flash Player version, for example:
WIN 8,0,0,0
MAC 9,0,45,0
There are two ways to access these strings:
Configure the server to remap the stream based on the Flash Player client. For more information, see
Virtual keys
Multiple bit rate switching
Challenge the connection using Server-Side ActionScript:
Client.agent
application.onConnect = function( pClient ) {
var platform
var versionMajor = platform[1].split(",")[0];
var versionMinor = platform[1].split(",")[1];
var versionBuild = platform[1].split(",")[2];
}
// output example
// Client.agent:
WIN 9,0,45,0
// platform[0]:
"WIN"
// versionMajor:
9
// versionMinor:
0
// versionBuild:
45
Verify connecting SWF files
You can configure the server to verify the authenticity of client SWF files before allowing them to connect to an appli-
cation. Verifying SWF files prevents someone from creating their own SWF files that attempt to stream your
resources. SWF verification is supported by Flash Player 9 Update 3 and above. For more information, see the Config-
uration and Administration Guide.
Allow and deny connections from specific domains
If you know the domains from which the legitimate clients will be connecting, you can whitelist those domains.
Conversely, you can blacklist known bad domains.
You can enter a static list of the domain names in the Adaptor.xml file. For more information, see Adobe Flash Media
Server Configuration and Administration Guide.
You can also maintain these lists in your own server-side code and files. In the following example, a file named
bannedIPList.txt contains a list of excluded IP addresses, which can be edited on the fly:
// bannedIPList.txt file contents:
// 192.168.0.1
// 128.493.33.0
function getBannedIPList() {
var bannedIPFile = new File ("bannedIPList.txt") ;
bannedIPFile.open("text","read");
application.bannedIPList = bannedIPFile.readAll();
bannedIPFile.close();
delete bannedIPFile;
}
and
.
VirtualKeys
= pClient.agent.split(" ");
ADOBE FLASH MEDIA SERVER
Developer Guide
58

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server

Table of Contents