如何使用ozeki SDK(C#)获取IP设备 [英] How I could get IP device with ozeki SDK ( C# )

查看:216
本文介绍了如何使用ozeki SDK(C#)获取IP设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How could you get IP from an active Camera Device just by looking for the camera device with OZeki ?? I want to get the ip of a device when I click on a button





我尝试了什么:





What I have tried:

using Ozeki.Media.Video.Controls;
 
    public partial class Form1 : Form
    {
        private IIPCamera _camera;
        private DrawingImageProvider _imageProvider = new DrawingImageProvider();
        private MediaConnector _connector = new MediaConnector();
 
        public Form1()
        {
            InitializeComponent();
            _videoViewerWF1.SetImageProvider(_imageProvider);
        }
        private void btnConnect_Click(object sender, EventArgs e)
        {
             //Here I want to get the ip of a device when I click on a button,
             //  but I have only found these examples in this way and it does not help me
 _ipCamera = IPCameraFactory.GetCamera("192.168.10.56", "admin", "1111",CameraTransportType.TCP,true);
        }
    }

推荐答案

只需在网页上搜索SDK: C#Camera SDK:如何在中实现Onvif IP Camera Manager C# [ ^ ]



上页的第一个链接导致本地网络中的设备检测:

C#Camera SDK:在C#中发现本地网络上的Onvif IP摄像机 [ ^ ]



然后你有找到的具有主机地址和端口号的摄像机列表。
Just search the web page for the SDK: C# Camera SDK: How to implement an Onvif IP Camera Manager in C#[^]

The first link on the above page leads to device detection in the local network:
C# Camera SDK: Discover Onvif IP cameras on your local network in C#[^]

Then you have a list of found cameras with host addresses and port numbers.


这篇关于如何使用ozeki SDK(C#)获取IP设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆