Sets the security settings for a source folder or the whole server.
#include "ltmm.h"
Language | Syntax |
---|---|
C | HRESULT IltmmRTSPServer_put_Security(pThis, index, newValue) |
C++ | HRESULT put_Security(index, newValue) |
Pointer to the IltmmRTSPServer interface.
0-based index of the source folder whose security settings should be set.Use -1 to set the default RTSP Server security settings.
The ILMRTSPSecurity interface containing the security settings. If NULL, no authentication is required to access the folder (or server).
Value | Meaning |
---|---|
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. |
If index is between 0 and SourceCount - 1 (where SourceCount is the number of folders in the list, as indicated by IltmmRTSPServer::get_SourceCount), this function sets the security settings for the source with the index equal to index.
If index is set to -1, this function sets the default security settings for the RTSP server. All the current folders are set to these security settings. Also, all future folders added with IltmmRTSPServer::put_SourceFolder will use the default security settings.
If you never set the security settings for the RTSP server, the default security setting is NULL (no authentication is used).
See the ILMRTSPSecurity interface documentation for more information on RTSP security settings (also called 'authentication').
If the server is running, the updated security settings will be used the next time an RTSP client connects. It will not affect RTSP clients already connected.
Win32, x64.
Language | Example |
---|---|
C++ | IltmmRTSPServer |
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