forcepush this away if i fail

This commit is contained in:
Soph :3 2025-11-24 20:34:02 +02:00
parent 02044c60b4
commit d1f1aae0d3
4 changed files with 277 additions and 156 deletions

View file

@ -272,11 +272,10 @@ func main() {
host = "127.0.0.1"
}
rtspServer := rtsp.CreateServer(applicationContext, host, port, camera)
defer rtspServer.Stop()
rtspServer, err := rtsp.CreateServer(applicationContext, host, port, camera)
defer rtspServer.Close()
log.Printf("Created RTSP Server\n")
err := rtspServer.ListenAndServe()
if err != nil {
log.Printf("ERROR starting RTSP Server: %s\n", err)