AddUser Method

Summary
Adds a user to the list of authorized users maintained by this object.
Syntax
C#
C++/CLI
public int AddUser( 
   string Username, 
   string Password 
) 
public: 
int AddUser(  
   String^ Username, 
   String^ Password 
)  

Parameters

Username
String indicating the user name. Cannot be NULL.

Password
String indicating the password. Can be NULL if no password is desired. In this case, all you must specify to enter is the username.

Return Value

The 0-based index of this user in the list of users maintained by this object.

Remarks

Note that all users have the same privileges, so when you add a user to this object you are granting access to this user for the media that will use this object.

Example
C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public void SetSecurity() 
{ 
   RTSPSecurity security = new RTSPSecurity(); 
   security.RealmName = "MyRTSPServer"; 
   security.AuthenticationRequired = RTSPAuthenticationType.Basic; 
   security.AddUser("TestUser", "TestPassword"); 
   _server.SetSecurity(-1, security); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.