Add path to ONVIF requests

This commit is contained in:
Alexey Khit
2023-05-02 11:07:12 +03:00
parent 53967fc72a
commit 9c8a1d8b19
2 changed files with 36 additions and 15 deletions
+5
View File
@@ -10,6 +10,11 @@ import (
"time"
)
const (
PathDevice = "/onvif/device_service"
PathMedia = "/onvif/media_service"
)
func FindTagValue(b []byte, tag string) string {
re := regexp.MustCompile(tag + `[^>]*>([^<]+)`)
m := re.FindSubmatch(b)