User Guide
XML configuration files 181
For instance, the application developer might locate a stream encoded with the On2 codec in
one folder and create a different folder for the same stream encoded with the Sorenson codec.
Both streams have the same content, but each is tailored to replay on specific versions of Flash
Player.
You specify more than one virtual directory mapping by adding multiple
Streams tags.
Example
<VirtualDirectory>
<Streams key="A">foo;c:\streams\on2</Streams>
<Streams key="B">foo;c:\streams\sorenson</Streams>
<Streams key="">foo;c:\streams</Streams>
</VirtualDirectory>
The Key attribute matches the key found in the Flash Player string FlashVer on the client,
which is automatically sent to Flash Media Server with the login.
The administrator sets the key. The
client object in the server-side script has the writable
client.virtualKey property. Flash Player 8 and Flash Player 9 are assigned Key A; earlier
versions of the player get
Key B. When the client plays a stream, it will use the appropriate
key. The replay of a recorded stream fails if the player does not find a key.
See also
VirtualDirectory
UpdateInterval
Located in LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.
This tag specifies how frequently thread statistics are collected for reused messages.
Description
The default count is 1024 messages.
VirtualDirectory
This tag contains the virtual directory mappings for resources such as recorded streams.
Description
Virtual directories let you share resources such as recorded streams across different
applications. Virtual directories let multiple applications share the resources located in an
application directory. When the beginning portion of a resource's URI matches a specific
virtual directory, Flash Media Server maps the storage location of the resource to the virtual
directory.