Updated protocol from protocol/proto -> protocol/livekit (#242)

* Updated protocol from protocol/proto -> protocol/livekit

* separate MediaTrack from PublishedTrack
This commit is contained in:
David Zhao
2021-12-08 13:58:38 -08:00
committed by GitHub
parent 7948fabce0
commit 2d93ccd668
67 changed files with 759 additions and 114 deletions
+1 -3
View File
@@ -9,8 +9,8 @@ import (
"time"
lru "github.com/hashicorp/golang-lru"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
@@ -1075,8 +1075,6 @@ func (p *ParticipantImpl) handleTrackPublished(track types.PublishedTrack) {
}
p.lock.Unlock()
track.Start()
track.AddOnClose(func() {
// cleanup
p.lock.Lock()