BIG core logic rewrite

This commit is contained in:
Alexey Khit
2023-03-17 06:48:02 +03:00
parent 2146ea470b
commit 12a7b96289
107 changed files with 3000 additions and 3024 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
package srtp
import (
"github.com/AlexxIT/go2rtc/pkg/streamer"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/pion/rtcp"
"github.com/pion/rtp"
"github.com/pion/srtp/v2"
@@ -16,7 +16,7 @@ type Session struct {
remoteCtx *srtp.Context // read context
Write func(b []byte) (int, error)
Track *streamer.Track
Track *core.Receiver
Recv uint32
lastSequence uint32
@@ -82,7 +82,7 @@ func (s *Session) HandleRTP(data []byte) (err error) {
s.lastTimestamp = packet.Timestamp
s.lastTime = now
_ = s.Track.WriteRTP(packet)
s.Track.WriteRTP(packet)
return
}