fixed server not starting receiver

This commit is contained in:
David Zhao
2020-11-10 00:35:04 -08:00
parent 408ea3fe22
commit 40be24bf60
2 changed files with 39 additions and 2 deletions
+1
View File
@@ -44,6 +44,7 @@ func NewPeerTrack(ctx context.Context, peerId string, rtcpWriter RTCPWriter, tra
}
func (t *PeerTrack) Start() {
t.receiver.Start()
// start worker
go t.forwardWorker()
}