Setting Up Flash Media Server
Setting Up Flash Media Server
To make this application to work, you need to configure File Access and Stream Access.
File Access
The File Object class allows access to a sandbox within your server file system. To protect against any misuse, Flash Media Server allows access to files within a sandbox specified for the virtual host where the application instance is running.
To define your server-side sandbox, go into your application.xml file in the FileObj folder. Define where you are storing the FLVs and MP3s that you wish the server to find:
<FileObject>
<VirtualDirectory>/approot;
C:Program FilesMacromediaFlash Media Server 2applications
MyCollectionstreams\_definst_
</VirtualDirectory>
</FileObject>
You have just enabled secure file access to this defined sandbox. You can set up multiple file object directories by consecutively adding virtual directories.
Stream Access
You will also need to set up your Vhost.xml, which you can find in your conf/_defaultRoot_/_defaultVhost_/ subfolder in the Flash Media Server 2 folder because you must tell the server when you call “/approot” from the Vhost instance that it should look in the specified directory. You will need to define where you streams are located (should be the same as the setting you defined earlier for FileObject):
<VirtualDirectory>
<Streams>/approot;
C:Program FilesMacromediaFlash Media Server 2applications
MyCollectionstreams\_definst_
</Streams>
</Virtual Directory>
Comments