three
This commit is contained in:
parent
9e5cd110e0
commit
ab8b9f5315
2 changed files with 55 additions and 52 deletions
|
|
@ -273,7 +273,10 @@ func main() {
|
|||
}
|
||||
relay := libipcamera.CreateRTPRelay(applicationContext)
|
||||
rtspServer, err := rtsp.CreateServer(applicationContext, host, port, relay)
|
||||
defer rtspServer.Close()
|
||||
if rtspServer != nil {
|
||||
defer rtspServer.Close()
|
||||
}
|
||||
|
||||
|
||||
|
||||
if err := camera.StartPreviewStream(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue