SetAuthentication
Delphi
procedure SetAuthentication (AuthenticationType: TAuthenticationType; UserName: string; Password: string);
C++Builder
void __fastcall SetAuthentication(TAuthenticationType AuthenticationType, System::UnicodeString UserName, System::UnicodeString Password);
C#
public void SetAuthentication(TAuthenticationType AuthenticationType, string UserName, string Password);
VB.NET
Public Sub SetAuthentication(AuthenticationType As TAuthenticationType, UserName As String, Password As String)
C++/Qt
void SetAuthentication (TAuthenticationType AuthenticationType, wchar_t *UserName, wchar_t *Password);
Sets the username and password that will be required later to connect to a publishing point, a streaming URL or an IP camera.
To set the username and password for a publishing point on a Windows Media server:
VideoGrabber.NetworkStreaming = ns_ASFStreamingToPublishingPoint
VideoGrabber.ASFMediaServerPublishingPoint = "http://...."
VideoGrabber.SetAuthentication (at_PublishingPoint, "MyPubpointUser", "MyPubpointPassword");
VideoGrabber.StartPreview
To set the username and password for an IP camera:
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "http://..."
VideoGrabber.SetAuthentication (at_IPCamera, "MyIPCamUser", "MyIPCamPassword");
VideoGrabber.StartPreview
To set the username and password for a streaming URL:
VideoGrabber.VideoSource = vs_VideoFileOrURL
VideoGrabber.VideoSource_FileOrURL = "http://.........asf"
VideoGrabber.SetAuthentication (at_StreamingUrl, "MyURLUsername", "MyURLPassword");
VideoGrabber.StartPreview