
60
Working With Media Files
Within the
VirtualKeys
tag of the vhost.xml file, set the virtual key for Flash Player 7 and
below to
fp7
and set the virtual key for Flash Player 7 (7.0.19.0) and later (the player version
that supports the On2 codec) to
fp8
, as in the following example:
<VirtualKeys>
<Key from="WIN 8,0,0,0" to="WIN 9,0,0,0">fp8</Key>
<Key from="MAC 8,0,0,0" to="MAC 9,0,0,0">fp8</Key>
<Key from="WIN 6,0,0,0" to="WIN 7,0,55,0">fp7</Key>
<Key from="MAC 6,0,0,0" to="MAC 7,0,55,0">fp7</Key>
</VirtualKeys>
Configure your virtual directories to look for client keys of
"
fp7slow
"
,
"
fp8slow
"
, and so on,
as in the following example:
<VirtualDirectory>
<Streams key="fp7slow">foo;c:\streams\Sorenson22k</Streams>
<Streams key="fp7medium">foo;c:\streams\Sorenson150k</Streams>
<Streams key="fp7fast">foo;c:\streams\Sorenson300k</Streams>
<Streams key="fp8slow">foo;c:\streams\Vp622k</Streams>
<Streams key="fp8medium">foo;c:\streams\Vp6150k</Streams>
<Streams key="fp8fast">foo;c:\streams\Vp6300k</Streams>
<Streams key="">foo;c:\streams</Streams>
</VirtualDirectory>
In your server-side script, in the
application.onConnect
handler, write a bandwidth
detection routine and append the range to the value of each client’s virtual key, as in the
following example:
client.virt= "slow"
client.virt= "medium"
client.virt= "fast"
Flash Media Server will now serve content to individual clients based on the client’s player
version and bandwidth.
Mapping virtual directories to virtual keys
The mapping between the virtual keys and virtual directories is made in the vhost.xml file.
The
<VirtualKeys>
section from the vhost.xml file maps virtual keys to a range of Flash
Player versions, as in the following example:
<VirtualKeys>
<Key from="WIN 7,0,19,0" to="WIN 9,0,0,0"></Key>
<Key from="WIN 6,0,0,0" to="WIN 7,0,18,0"></Key>
<Key from="MAC 6,0,0,0" to="MAC 7,0,55,0"></Key>
</VirtualKeys>
Содержание FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Страница 1: ...Developing Media Applications ...
Страница 6: ...6 ...
Страница 10: ...10 About This Manual ...
Страница 36: ...36 Flash Media Server Architecture ...
Страница 80: ...80 Debugging and Monitoring Applications ...
Страница 106: ...106 Application Development Tips and Tricks ...
Страница 114: ...114 ...