Hello
I’m trying to make windows user form to display one camera.
The main problem is when i’m using VideoOS.Platform.SDK.Platform ArchestrA don’t import my windows form.
static private bool Login()
{
CredentialCache cc = Util.BuildCredentialCache(uri, userName, password, "Basic");
Application.EnableVisualStyles();
VideoOS.Platform.SDK.Environment.Initialize();
try
{
VideoOS.Platform.SDK.Environment.AddServer(uri, cc);
VideoOS.Platform.SDK.Environment.Login(uri, true);
}
catch (ServerNotFoundMIPException snfe)
{
MessageBox.Show("Serwer nieznaleziony: " + snfe.Message);
return false;
}
catch (InvalidCredentialsMIPException ice)
{
MessageBox.Show("Błędne dane do logowania: " + ice.Message);
return false;
}
catch (Exception)
{
MessageBox.Show("Błąd połączenia: " + uri.DnsSafeHost);
return false;
}
return true;
}
Maybe there is other way to log in to milestone server without using VideoOS.Platform.SDK.Platform or mabe there is other way to force ArchestrA to use that lib. Can anyone help me?