fixed keys parsing from ENV/cli

This commit is contained in:
David Zhao
2021-01-30 13:20:39 -08:00
parent 65078f5ef8
commit 5ce52b6a30
4 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
}
outTrack.SetTransceiver(transceiver)
// TODO: when outtrack is bound, start loop to send reports
// when outtrack is bound, start loop to send reports
outTrack.OnBind(func() {
if rr := bufferFactory.GetOrNew(packetio.RTCPBufferPacket, outTrack.SSRC()).(*buffer.RTCPReader); rr != nil {
rr.OnPacket(func(pkt []byte) {
+1
View File
@@ -48,6 +48,7 @@ func TestIsReady(t *testing.T) {
func TestTrackPublishing(t *testing.T) {
t.Run("should send the correct events", func(t *testing.T) {
p := newParticipantForTest("test")
p.state.Store(livekit.ParticipantInfo_ACTIVE)
track := &typesfakes.FakePublishedTrack{}
track.IDReturns("id")
published := false