Don't wait rtp packet to fire track (#3246)

* Don't wait rtp packet to fire track

Create track from sdp instead of first rtp packet,
it is consistent with the browser behavior and
will accelerate the track publication.

* fix test
This commit is contained in:
cnderrauber
2024-12-13 15:06:14 +08:00
committed by GitHub
parent 789d0484e2
commit 5dd6858acf
9 changed files with 174 additions and 24 deletions
+1
View File
@@ -491,6 +491,7 @@ func (r *RoomManager) StartSession(
ForwardStats: r.forwardStats,
MetricConfig: r.config.Metric,
UseOneShotSignallingMode: useOneShotSignallingMode,
FireOnTrackBySdp: true,
})
if err != nil {
return err