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 required to connect to a publishing point, a streaming URL or an IP camera. Invoke SetAuthentication to set the username and password that will be required soon.
E.g.:
- 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