OnAuthenticationNeeded
Delphi
property OnAuthenticationNeeded: TOnAuthenticationNeeded read FOnAuthenticationNeeded write FOnAuthenticationNeeded;
C++Builder
__property TOnAuthenticationNeeded OnAuthenticationNeeded = {read=FOnAuthenticationNeeded, write=FOnAuthenticationNeeded};
typedef void __fastcall (__closure *TOnAuthenticationNeeded)(System::TObject* Sender, TAuthenticationType AuthenticationType, System::UnicodeString Realm, System::UnicodeString Server, System::UnicodeString &Username, System::UnicodeString &Password);
C#
public event OnAuthenticationNeededEventHandler OnAuthenticationNeeded;
public delegate void OnAuthenticationNeededEventHandler(object sender, TOnAuthenticationNeededEventArgs e);
VB.NET
Public Event OnAuthenticationNeeded As OnAuthenticationNeededEventHandler
Public Delegate Sub OnAuthenticationNeededEventHandler(sender As Object, e As TOnAuthenticationNeededEventArgs)
C++/Qt
void SetOnAuthenticationNeeded (TOnAuthenticationNeededCb OnAuthenticationNeededCb);
typedef void CALLBACK TOnAuthenticationNeededCb (void *Object, void *Sender, TAuthenticationType AuthenticationType, wchar_t *Realm, wchar_t *Server, wchar_t **Username, wchar_t **Password);
This TOnAuthenticationNeeded event occurs to pass a user name and password when authentication is required, e.g. to stream to a publishing point.
Parameters:
-
AuthenticationType: reports the type of authentication needed (TAuthenticationType): at_PublishingPoint, at_IPCamera or at_StreamingUrl.
-
Realm: reports the domain name, if any.
-
Server: reports the server name, if any.
-
Username: set this parameter to the user name needed for the authentication.
-
Password: set this parameter to the password needed for the authentication.