LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

SetSecurity Method

Show in webframe



0-based index of the source folder whose security settings should be set. Use -1 to set the default RTSP Server security settings.
The RTSPSecurity object containing the security settings. If NULL, no authentication is required to access the folder (or server).
Sets the security settings for a source folder or the whole server.
Syntax
'Declaration
 
Public Sub SetSecurity( _
   ByVal index As Integer, _
   ByVal value As RTSPSecurity _
) 
'Usage
 
Dim instance As RTSPServer
Dim index As Integer
Dim value As RTSPSecurity
 
instance.SetSecurity(index, value)
public void SetSecurity( 
   int index,
   RTSPSecurity value
)
public:
void SetSecurity( 
   int index,
   RTSPSecurity^ value
) 

Parameters

index
0-based index of the source folder whose security settings should be set. Use -1 to set the default RTSP Server security settings.
value
The RTSPSecurity object containing the security settings. If NULL, no authentication is required to access the folder (or server).
Remarks

If index is between 0 and SourceCount - 1 (where SourceCount is the number of folders in the list, as indicated by SourceCount), this function sets the security settings for the source with the index equal to index.

If index is set to -1, this method 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 SetSourceFolder 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 RTSPSecurity 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 a RTSP client connects. It will not affect RTSP clients already connected.

Example
For an example, see RTSPSecurity.
Requirements

Target Platforms

See Also

Reference

RTSPServer Class
RTSPServer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features