ONVIF server with multi-lens camera support

This commit is contained in:
ProtoTess
2025-10-31 01:25:44 +00:00
parent 23ed9f3c41
commit 3340094f4f
21 changed files with 4415 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
package main
import (
"context"
"fmt"
"log"
"github.com/0x524A/go-onvif/server"
)
func main() {
fmt.Println("Starting ONVIF Server on port 8081...")
fmt.Println("Press Ctrl+C to stop")
fmt.Println()
config := server.DefaultConfig()
config.Port = 8081
srv, err := server.New(config)
if err != nil {
log.Fatal(err)
}
ctx := context.Background()
if err := srv.Start(ctx); err != nil {
log.Fatal(err)
}
}