SetMediaDirectory |
Top Previous Next |
Message
SetMediaDirectory <directory>
Originator
Client
Response
Info: media directory set to <directory> SyntaxError: insufficient parameters to SetMediaDirectory SyntaxError: invalid parameters to SetMediaDirectory
Response (immediate socket)
Success Failure
Details
Sets the directory that will be searched for the server for media files (.WAV wave audio files, .BMP bitmap pictures, etc.)
If the server is asked to load a file called file.bmp, it searches for it in the following order:
Note All pathnames are interpreted relative to the server, even if you are running a client on a different computer. It is possible to retrieve files from a different computer. For example, if a machine called client wants a server called server to use a picture on the client's hard disk, it could send a filename as "\\client\client_disk\directory\file.bmp". However, this method should not be unless you have good reason to store the media files remotely from the WhiskerServer machine: the performance of media loading commands will be slower and will depend heavily on network performance and reliability (especially if you need to load media quickly and often).
Revision history
Implemented by WhiskerServer version 2.3.
|