
182 Configuration Files
Syntax
virtualDirectory;actualDirectory
The Streams tag allows you to specify a virtual directory for stored stream resources used by
more than one application. By using a virtual directory, you specify a relative path that points
to a shared directory that multiple applications can access.
Example
<Streams>common;C:\FlashMediaServer\myApplications\shared/resources\
</Streams>
If the virtual directory you specify does not end with a backward slash, one is added by the
server.
Any application that refers to a stream whose path begins with common/
will access the item
in C:\FlashMediaServer\myApplications\shared\resources regardless of the application’s own
directory structure. If the application VideoConference refers to an item common/video/
recorded/June5 and the application Collaboration refers to common/videorecorded/June5,
they both point to the same item
C:\FlashMediaServer\myApplications\shared\resources\video\recorded\June5\.
Additional information
This release includes a feature called custom stream delivery, which allows Flash Media Server
to match the decoding of a recorded stream to the version of Flash Player on the client.
Custom stream delivery allows an application running on Flash Media Server to switch
between the Sorenson and On2 CODECs (data COmpressor/DECompressor) without
changes to the code.
Custom stream delivery is enabled using a combination of the
VirtualDirectory and
VirtualKey tags, and the Client.virtualKey and Stream.setVirtualPath() APIs.
For optimal results:
■ Streams replaying on Flash Players 6 and 7 use the Sorenson technology.
■ Streams replaying on Flash Player 8 use the On2 technology.
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.
Commenti su questo manuale