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.
Name
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 an index value equal to the 'index' parameter.
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.
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 folder 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:
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;
RTSPServer _server = null;
public void StartServer()
{
// create the server instance
_server = new RTSPServer();
// specify c:\MyFiles as the source folder
_server.SetSourceFolder(0, @"c:\MyFiles");
// will listen on 127.0.0.1
_server.TargetAddress = "127.0.0.1";
// start listening on port 554
_server.StartServer(554);
// set the latency
_server.SetLiveLatency(-1, 0.7);
}
public void StopServer()
{
_server.StopServer(554);
_server.Dispose();
_server = null;
}
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