TRVCamera.LoginPrompt

<< Click to display table of contents >>

TRVCamera.LoginPrompt

Specifies whether the component should request a user name and a password from the user (if authentication failed).

property LoginPrompt: Boolean;

If the specified video source (IP camera, HTTP or RTSP stream) needs authentication, the component uses a user name and a password specified in URL, or in UserName and UserPassword and UserPassword properties.

If authentication fails, and LoginPrompt = True, the component requests new user name and password from the user. If OnLogin event is assigned, it is called; otherwise the login prompt dialog is displayed. If authentication still fails, this process is repeated several times.

A language of the login prompt dialog is specified in the Language property.

If authentication finally fails, the following events occur: OnLoginFailed; OnEndVideoStream event with an error code.

Default value

False