Add ONVIF client and server support

This commit is contained in:
Alexey Khit
2023-04-29 13:58:10 +03:00
parent 8dbaa4ba93
commit 1e14dc9ab2
8 changed files with 746 additions and 0 deletions
+7
View File
@@ -68,6 +68,13 @@ func GetOrNew(src string) *Stream {
return New(src, src)
}
func GetAll() (names []string) {
for name := range streams {
names = append(names, name)
}
return
}
func streamsHandler(w http.ResponseWriter, r *http.Request) {
query := r.URL.Query()
src := query.Get("src")