server: split WriteFrame into WritePacketRTP and WritePacketRTCP

This commit is contained in:
aler9
2021-10-30 16:15:04 +02:00
committed by Alessandro Ros
parent 472430f900
commit 2882bacdf2
10 changed files with 105 additions and 77 deletions

View File

@@ -181,9 +181,9 @@ type ServerHandlerOnSetParameter interface {
// ServerHandlerOnPacketRTPCtx is the context of a RTP packet.
type ServerHandlerOnPacketRTPCtx struct {
Session *ServerSession
TrackID int
Payload []byte
Session *ServerSession
TrackID int
Payload []byte
}
// ServerHandlerOnPacketRTP can be implemented by a ServerHandler.
@@ -193,9 +193,9 @@ type ServerHandlerOnPacketRTP interface {
// ServerHandlerOnPacketRTCPCtx is the context of a RTCP packet.
type ServerHandlerOnPacketRTCPCtx struct {
Session *ServerSession
TrackID int
Payload []byte
Session *ServerSession
TrackID int
Payload []byte
}
// ServerHandlerOnPacketRTCP can be implemented by a ServerHandler.