Support track level stereo and red setting (#1086)

* Support track level stereo and red setting

* fix test client
This commit is contained in:
cnderrauber
2022-10-17 10:48:11 +08:00
committed by GitHub
parent 00ec859dd1
commit 8fd3e8fe2d
10 changed files with 308 additions and 300 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ import (
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/pkg/rtc/types"
)
type RTCClient struct {
@@ -507,7 +508,7 @@ func (c *RTCClient) AddTrack(track *webrtc.TrackLocalStaticSample, path string)
c.lock.Lock()
defer c.lock.Unlock()
sender, _, err := c.publisher.AddTrack(track)
sender, _, err := c.publisher.AddTrack(track, types.AddTrackParams{})
if err != nil {
logger.Errorw("add track failed", err, "trackID", ti.Sid, "participant", c.localParticipant.Identity, "pID", c.localParticipant.Sid)
return