Camera Information System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

namespace EC.Helper.Onvif.RemoteDiscovery;
public static class Constants
{
public static string WS_MULTICAST_ADDRESS { get; } = "239.255.255.250";
public static int WS_MULTICAST_PORT { get; } = 3702;
public static string WS_PROBE_MESSAGE { get; } =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<e:Envelope xmlns:e=\"http://www.w3.org/2003/05/soap-envelope\""
+ "xmlns:w=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\""
+ "xmlns:d=\"http://schemas.xmlsoap.org/ws/2005/04/discovery\""
+ "xmlns:tds=\"https://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl\""
+ "xmlns:dn=\"http://www.onvif.org/ver10/network/wsdl\">"
+ "<e:Header>"
+ "<w:MessageID>uuid:{0}</w:MessageID>"
+ "<w:To>urn:schemas-xmlsoap-org:ws:2005:04:discovery</w:To> "
+ "<w:Action>http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe</w:Action>"
+ "</e:Header>"
+ "<e:Body>"
+ "<d:Probe><d:Types>dn:NetworkVideoTransmitter</d:Types></d:Probe>"
+ "</e:Body>"
+ "</e:Envelope>";
public static string PATTERN { get; } = @"^((onvif[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$";
}