[Inquiry]
When building a viewer using the SDK, please explain how to configure it so that standard users log in using only HTTP, without using HTTPS.
[Background]
Logging in via HTTPS takes a long time.
Upon investigation, we found that unused HTTPS packets are being transmitted, and since the time it takes for these to fail is wasted, we would like to suppress this.
The login flow is complex because it includes fallback mechanisms to support older XProtect VMS versions. Even so, the process is designed to keep login times as low as possible.
My initial assessment is that it is not possible to disable HTTPS during login. Before I provide a definitive answer, could you help clarify a few points?
Are you using the latest Milestone Integration Platform Software Development Kit (MIP SDK) NuGet packages?
Which version of XProtect VMS are you connecting to?
Is encryption enabled in the XProtect installation? You can verify this in the Server Configurator.
Once I have this information, I can take a closer look and provide more specific guidance.
My initial assessment was wrong. It is possible by setting this property:
bool VideoOS.Platform.SDK.EnvironmentProperties.KeepLoginServerUriScheme get set
Used when adding a server to the list of servers available for the application. The value can either be set in the code after initializing the MIP SDK environment or configured in MIPSettings.xml file.
If set to true, the URI scheme of the input server address remains unchanged. If set to false, the URI scheme of the input server address is not used. Instead, the connection over HTTPS is attempted first. If that fails, and the client allows unsecure communication, the URI scheme is downgraded to HTTP.