java利用isapi协议如何实现客户端发送RTSP DESCRIBE请求海康nvr,代码怎么写
时间: 2023-03-06 19:20:49 浏览: 165
海康相机RTSP客户端底层源码
5星 · 资源好评率100%
要实现客户端发送RTSP DESCRIBE请求海康nvr,需要使用Java的ISAPI协议,具体代码如下:String username = "username"; String password = "password"; String url = "rtsp://nvr_ip:554/channel=1"; // Create an instance of the RTSPConnection class RTSPConnection conn = new RTSPConnection(); // Connect to the NVR conn.connect(url, username, password); // Send the RTSP DESCRIBE request conn.sendDescribe(); // Receive the RTSP response RtspResponse response = conn.receiveResponse(); // Parse the response RTSPParser.parseResponse(response); // Close the connection conn.disconnect();
阅读全文