Posted by : Randy Cooper in (CDN)

Using the FLVPlayback Component to Stream Files from Virtual Directories

Using the FLVPlayback Component to Stream Files from Virtual Directories

Here comes a little gotcha that could potentially have you pulling your hair out for a fair few hours, and some more once you realise how simple the ‘fix’ is.
If you are streaming files from FMS (be it version 2 or 3) then you may have made use of its Virtual Directory feature. This allows you to use a key (basically a named mapping) to point FMS at different storage locations for video files.

For example you could configure a key name of ‘myvideos’ and map this to a location of C:\myfiles\videostorage. The tag in vhost.xml would look like this: myvideos;C:\myfiles\videostorage Then every time a stream is requested via NetStream.play the server will look for the myvideos key in the stream path and if found locate the appropriate video file inside /videostorage (or if required in a subfolder).

Make a comment