SetAuthentication
|
TVideoGrabber.SetAuthentication |
||||
|
|
|
|
||
Sets the username and password required to connect to a publishing point, a streaming URL or an IP camera
Declaration
procedure SetAuthentication (AuthenticationType: TAuthenticationType; UserName: String; Password: String);
void __fastcall SetAuthentication(TAuthenticationType TAuthenticationType; wchar_t *UserName; wchar_t *Password);
Description
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