Macromedia flash media server 2-managing flash media server ユーザーズマニュアル

ページ / 238
XML configuration files
183
VirtualKeys
This tag sets the virtual key mappings for the different versions of Flash Player connecting to 
Flash Media Server. This tag and the 
VirtualDirectory
 tag implement the custom stream 
delivery feature in Flash Media Server 2.
Description
When the Flash Player running on a client connects to Flash Media Server, it receives a virtual 
key. This tag sets up which Flash Player versions are mapped to a particular key. A range of 
Flash Player versions is matched according to the 
FlashVer
 string that the player 
automatically sends to the server.
<VirtualKeys>
<Key from="WIN 8,0,0,0" to="WIN 9,0,0,0">A</Key>
<Key from="WIN 6,0,0,0" to="WIN 7,9,9,9">B</Key>
<Key from="MAC 6,0,0,0" to="MAC 7,0,55,0">B</Key>
</VirtualKeys>
This example shows how the key can be set by the administrator as a client property in the 
server-side script. If the client has key A, the 
Key
 attribute will map to on2, and if it has key B 
it will map to Sorenson.
<VirtualKeys from="WIN 7,0,19,0" to="WIN 9,0,0,0">A</VirtualKeys>
This example shows if the 
VirtualKey
 tag is not specified for a version of Flash Player, Flash 
Media Server applies a default setting.
Additional information
Custom stream delivery is enabled using a combination of the 
VirtualDirectory
 and 
VirtualKey
 tags, and the
 Client.virtualKey
 and 
Stream.setVirtualPath() 
APIs.
See also
Application.xml file
The Application.xml file contains the settings for the applications that will run on the server. 
These settings include, for example, the size of the Server-Side Media ActionScript runtime 
engine, the location at which streams and shared objects are stored, and bandwidth 
limitations.