mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: split WriteFrame into WritePacketRTP and WritePacketRTCP
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user