Но GetProfiles не получает никаких профилей от камеры.
Код: Выделить всё
Device.Service xmedia = services.FirstOrDefault(s => s.Namespace == "http://www.onvif.org/ver20/media/wsdl");
if (xmedia != null)
{
media = new Media.Media2Client(binding, new EndpointAddress(deviceUri.ToString()));
media.ClientCredentials.HttpDigest.ClientCredential.UserName = login.Text;
media.ClientCredentials.HttpDigest.ClientCredential.Password = passwordBox.Password;
media.ClientCredentials.HttpDigest.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
Media.MediaProfile[] profiles = media.GetProfiles(null, null);
if (profiles != null)
{
foreach (var p in profiles)
{
listBox.Items.Add(p.Name);
}
}
Также я пытался включить Onvif через код на C#, но ничего не дало.< /п>
Подробнее здесь: https://stackoverflow.com/questions/786 ... s-not-work
Мобильная версия