update gortsplib
This commit is contained in:
parent
42939b9c18
commit
c65f4509bd
2
go.mod
2
go.mod
|
@ -3,7 +3,7 @@ module github.com/aler9/rtsp-simple-server
|
|||
go 1.17
|
||||
|
||||
require (
|
||||
github.com/aler9/gortsplib v0.0.0-20211203221149-9c3ee269f2a9
|
||||
github.com/aler9/gortsplib v0.0.0-20211205121328-1878a72fd9fd
|
||||
github.com/asticode/go-astits v1.10.0
|
||||
github.com/fsnotify/fsnotify v1.4.9
|
||||
github.com/gin-gonic/gin v1.7.2
|
||||
|
|
4
go.sum
4
go.sum
|
@ -2,8 +2,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafo
|
|||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E=
|
||||
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
|
||||
github.com/aler9/gortsplib v0.0.0-20211203221149-9c3ee269f2a9 h1:K2kyqBoKnz8FWbtum8/Fvsixpy0jIT1EZiG8XYbY++I=
|
||||
github.com/aler9/gortsplib v0.0.0-20211203221149-9c3ee269f2a9/go.mod h1:fyQrQyHo8QvdR/h357tkv1g36VesZlzEPsdAu2VrHHc=
|
||||
github.com/aler9/gortsplib v0.0.0-20211205121328-1878a72fd9fd h1:WrDlZjXvCf+LNp0QWsQ7VLHX9lD36QD5pGqEhf0In5s=
|
||||
github.com/aler9/gortsplib v0.0.0-20211205121328-1878a72fd9fd/go.mod h1:fyQrQyHo8QvdR/h357tkv1g36VesZlzEPsdAu2VrHHc=
|
||||
github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927 h1:95mXJ5fUCYpBRdSOnLAQAdJHHKxxxJrVCiaqDi965YQ=
|
||||
github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927/go.mod h1:vzuE21rowz+lT1NGsWbreIvYulgBpCGnQyeTyFblUHc=
|
||||
github.com/asticode/go-astikit v0.20.0 h1:+7N+J4E4lWx2QOkRdOf6DafWJMv6O4RRfgClwQokrH8=
|
||||
|
|
|
@ -366,12 +366,12 @@ func (s *rtspSession) onReaderAccepted() {
|
|||
|
||||
// onReaderPacketRTP implements reader.
|
||||
func (s *rtspSession) onReaderPacketRTP(trackID int, payload []byte) {
|
||||
s.ss.WritePacketRTP(trackID, payload)
|
||||
// packets are routed to the session by gortsplib.ServerStream.
|
||||
}
|
||||
|
||||
// onReaderPacketRTCP implements reader.
|
||||
func (s *rtspSession) onReaderPacketRTCP(trackID int, payload []byte) {
|
||||
s.ss.WritePacketRTCP(trackID, payload)
|
||||
// packets are routed to the session by gortsplib.ServerStream.
|
||||
}
|
||||
|
||||
// onReaderAPIDescribe implements reader.
|
||||
|
|
|
@ -75,8 +75,3 @@ func (s *RTCPSenderSet) run() {
|
|||
func (s *RTCPSenderSet) OnPacketRTP(trackID int, payload []byte) {
|
||||
s.senders[trackID].ProcessPacketRTP(time.Now(), payload)
|
||||
}
|
||||
|
||||
// OnPacketRTCP sends a RTCP packet to the senders.
|
||||
func (s *RTCPSenderSet) OnPacketRTCP(trackID int, payload []byte) {
|
||||
s.senders[trackID].ProcessPacketRTCP(time.Now(), payload)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue