Skip to content

Commit

Permalink
fix svc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohan Totting committed Mar 4, 2024
1 parent 0694b85 commit c0396d9
Showing 1 changed file with 19 additions and 34 deletions.
53 changes: 19 additions & 34 deletions clienttracksvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,25 @@ func DefaultQualityPreset() QualityPreset {
}

type scaleableClientTrack struct {
id string
context context.Context
cancel context.CancelFunc
mu sync.RWMutex
client *Client
kind webrtc.RTPCodecType
mimeType string
localTrack *webrtc.TrackLocalStaticRTP
remoteTrack *Track
lastQuality QualityLevel
maxQuality QualityLevel
tid uint8
sid uint8
lastTimestamp uint32
lastSequence uint16
isScreen bool
dropCounter uint16
qualityPreset QualityPreset
packetCaches *packetCaches
packetChan chan *rtp.Packet
firstInterPicReceived bool
id string
context context.Context
cancel context.CancelFunc
mu sync.RWMutex
client *Client
kind webrtc.RTPCodecType
mimeType string
localTrack *webrtc.TrackLocalStaticRTP
remoteTrack *Track
lastQuality QualityLevel
maxQuality QualityLevel
tid uint8
sid uint8
lastTimestamp uint32
isScreen bool
dropCounter uint16
qualityPreset QualityPreset
packetCaches *packetCaches
packetChan chan *rtp.Packet
}

func newScaleableClientTrack(
Expand Down Expand Up @@ -263,17 +261,6 @@ func (t *scaleableClientTrack) process(p *rtp.Packet) {
return
}

if !t.firstInterPicReceived {
if !vp9Packet.P {

t.dropCounter++

return
}

t.firstInterPicReceived = true
}

// mark packet as a last spatial layer packet
if vp9Packet.E && currentSID == vp9Packet.SID && targetSID <= currentSID {
p.Marker = true
Expand All @@ -295,8 +282,6 @@ func (t *scaleableClientTrack) send(p *rtp.Packet) {
p.SequenceNumber = normalizeSequenceNumber(p.SequenceNumber, t.dropCounter)

t.writeRTP(p)

// t.packetCaches.Push(p.SequenceNumber, p.Timestamp, t.dropCounter, tid, sid, nextsid)
}

func (t *scaleableClientTrack) RemoteTrack() *remoteTrack {
Expand Down

0 comments on commit c0396d9

Please sign in to comment.