Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben committed Nov 15, 2023
1 parent 897b7bf commit bd2adf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions localparticipant.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (p *LocalParticipant) republishTracks() {
p.tracks.Range(func(key, value interface{}) bool {
track := value.(*LocalTrackPublication)

if track.Track() != nil {
if track.Track() != nil || len(track.simulcastTracks) > 0 {
localPubs = append(localPubs, track)
}
p.tracks.Delete(key)
Expand All @@ -246,7 +246,7 @@ func (p *LocalParticipant) closeTracks() {
var localPubs []*LocalTrackPublication
p.tracks.Range(func(_, value interface{}) bool {
track := value.(*LocalTrackPublication)
if track.Track() != nil {
if track.Track() != nil || len(track.simulcastTracks) > 0 {
localPubs = append(localPubs, track)
}
return true
Expand Down
1 change: 1 addition & 0 deletions localsampletrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func (s *LocalSampleTrack) Bind(t webrtc.TrackLocalContext) (webrtc.RTPCodecPara
}

s.lock.Lock()
s.ssrcAcked = false
s.ssrc = t.SSRC()
for _, ext := range t.HeaderExtensions() {
if ext.URI == sdp.AudioLevelURI {
Expand Down

0 comments on commit bd2adf8

Please sign in to comment.