Add backchannel support for rtsp server

This commit is contained in:
seydx
2024-11-03 16:33:08 +01:00
parent 2c34a17d88
commit f13aa21d0f
4 changed files with 76 additions and 19 deletions
+4
View File
@@ -141,6 +141,10 @@ func MarshalSDP(name string, medias []*Media) ([]byte, error) {
}
md.WithCodec(codec.PayloadType, name, codec.ClockRate, codec.Channels, codec.FmtpLine)
if media.Direction != "" {
md.WithPropertyAttribute(media.Direction)
}
if media.ID != "" {
md.WithValueAttribute("control", media.ID)
}