#include "ltmm.h"
C Syntax |
HRESULT IltmmRTSPServer_put_SourceFolder(pThis, index, newValue) |
C++ Syntax |
HRESULT put_SourceFolder(index, newValue) |
IltmmRTSPServer *pThis; |
pointer to the interface |
long index; |
folder index |
BSTR newValue; |
the source folder path |
Adds, modifies or removes a folder from the internal source folder list.
Parameter |
Description |
pThis |
Pointer to the IltmmRTSPServer interface. |
index |
0-based index of the source folder that should be set. The source folders are stored as an array of folder names. Can be set to -1 to indicate the folder should be added to the end of the list. |
newValue |
String containing the folder name. The folder names are absolute and should be fully specified. It can be NULL if you intend to remove the folder at index value equal to the 'index' parameter. |
S_OK |
The function was successful. |
<> S_OK |
An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
The RTSP Server keeps an internal list of folders which store the source files for the server. When a client asks for a file to stream, the RTSP Server will look for the requested file in this source folder list, in order.
So the server looks in the first folder first. If it does not find it, it looks in the next folder and so on until it finds a filter containing the requested file.
This function allows you to modify the server list. You can add, modify or remove folders from this list as follows:
Add folders to the list by setting index to -1 or SourceCount and newValue != NULL (where SourceCount is the number of folders in the list, as indicated by IltmmRTSPServer::get_SourceCount).
Modify folders in the list by setting index to a value between 0 and SourceCount - 1 and newValue != NULL
Remove folders from the list by setting index to a value between 0 and SourceCount - 1 and newValue = NULL
Required DLLs and Libraries
LTMM For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64
Elements: |
IltmmRTSPServer interface, IltmmRTSPServer::get_SourceFolder |
Topics: |
For a C++ example, refer to IltmmRTSPServer Example for C++.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document