
252
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
XML configuration files reference
Last updated 11/28/2012
The following configuration maps streams whose paths begin with
common/
to the folder
C:\flashmediaserver\myapplications\shared\resources.
<Streams>common;C:\flashmediaserver\myapplications\shared\resources\</Streams>
If the application “videoConference” refers to an item
common/video/recorded/june5
and the application
“collaboration” refers to
common/video/recorded/june5
, they both point to the same item
C:\flashmediaserver\myapplications\shared\resources\video\recorded\june5\.
See also
VirtualDirectory
VirtualDirectory
Specifies virtual directory mappings for resources such as recorded streams.
Virtual directories let you share resources among applications. When the beginning portion of a resource’s URI
matches a virtual directory, Flash Media Server serves the resource from the physical directory. For detailed
information on mapping virtual directories, see “
Mapping virtual directories to physical directories
” on page 51.
You can use the
VirtualDirectory
element in conjunction with the
VirtualKeys
element to serve content based on
Flash Player version information. For more information, see
VirtualKeys
.
Note:
If you are mapping a virtual directory to a drive on another computer, make sure that the computer running Flash
Media Server has the right permissions to access the other computer. For more information, see “
Mapping directories to
network drives
” on page
50.
Example
For example, using the following
VirtualDirectory
XML, if a client called
NetStream.play("vod/myVideo")
, the
server would play the file d:\sharedStreams\myVideo.flv:
<VirtualDirectory>
<Streams>vod;d:\sharedStreams</Streams>
</VirtualDirectory>
Contained elements
Streams
See also
VirtualKeys
VirtualHost
Root element of the Vhost.xml file.
This element contains all the configuration elements for the Vhost.xml file.
VirtualKeys
Lets you map Flash Player versions to keys. The keys are used in the
VirtualDirectory
element to map URLs to
physical locations on a server. Use these elements to deliver streams to clients based on Flash Player version.