修复获取rtsp列表信息

This commit is contained in:
dexter
2021-12-13 10:17:54 +08:00
parent 9eb117811d
commit 4895f2ec42
3 changed files with 25 additions and 3 deletions

View File

@@ -177,6 +177,7 @@ func (sh *RTSPServer) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (*ba
Type: "RTSP push",
},
}
p.ExtraProp = p
p.URL = ctx.Req.URL.String()
if p.Publish() {
p.setTracks(ctx.Tracks)