mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: decode and encode RTP/RTCP packets
This commit is contained in:
@@ -410,7 +410,7 @@ func TestServerHighLevelPublishRead(t *testing.T) {
|
||||
defer mutex.Unlock()
|
||||
|
||||
if ctx.Session == publisher {
|
||||
stream.WritePacketRTP(ctx.TrackID, ctx.Payload)
|
||||
stream.WritePacketRTP(ctx.TrackID, ctx.Packet)
|
||||
}
|
||||
},
|
||||
onPacketRTCP: func(ctx *ServerHandlerOnPacketRTCPCtx) {
|
||||
@@ -418,7 +418,7 @@ func TestServerHighLevelPublishRead(t *testing.T) {
|
||||
defer mutex.Unlock()
|
||||
|
||||
if ctx.Session == publisher {
|
||||
stream.WritePacketRTCP(ctx.TrackID, ctx.Payload)
|
||||
stream.WritePacketRTCP(ctx.TrackID, ctx.Packet)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user