allow setting additional properties of streams through description.Stream

This commit is contained in:
aler9
2023-08-16 19:02:49 +02:00
committed by Alessandro Ros
parent 4e000eb2dd
commit cdbecb1f5d
54 changed files with 943 additions and 893 deletions

View File

@@ -10,12 +10,12 @@ import (
"github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v4/pkg/description"
)
type serverSessionMedia struct {
ss *ServerSession
media *media.Media
media *description.Media
tcpChannel int
udpRTPReadPort int
udpRTPWriteAddr *net.UDPAddr
@@ -30,7 +30,7 @@ type serverSessionMedia struct {
onPacketRTCP OnPacketRTCPFunc
}
func newServerSessionMedia(ss *ServerSession, medi *media.Media) *serverSessionMedia {
func newServerSessionMedia(ss *ServerSession, medi *description.Media) *serverSessionMedia {
sm := &serverSessionMedia{
ss: ss,
media: medi,