Fix RTSP server SDP for some clients

This commit is contained in:
Alexey Khit
2023-01-18 11:45:39 +03:00
parent 8628c48db8
commit f9d5ab9d0a
4 changed files with 43 additions and 3 deletions
+2 -1
View File
@@ -78,6 +78,7 @@ type Conn struct {
// public
Backchannel bool
SessionName string
Medias []*streamer.Media
Session string
@@ -618,7 +619,7 @@ func (c *Conn) Accept() error {
medias = append(medias, media)
}
res.Body, err = streamer.MarshalSDP(medias)
res.Body, err = streamer.MarshalSDP(c.SessionName, medias)
if err != nil {
return err
}