Extract video size from media stream (#3856)

* Extract video size from media stream

* fix test
This commit is contained in:
cnderrauber
2025-08-18 09:06:57 +08:00
committed by GitHub
parent 456b870936
commit b660c3b582
11 changed files with 838 additions and 58 deletions
+2
View File
@@ -208,6 +208,7 @@ type ParticipantParams struct {
DisableCodecRegression bool
LastPubReliableSeq uint32
Country string
PreferVideoSizeFromMedia bool
}
type ParticipantImpl struct {
@@ -3138,6 +3139,7 @@ func (p *ParticipantImpl) addMediaTrack(signalCid string, ti *livekit.TrackInfo)
ShouldRegressCodec: func() bool {
return p.helper().ShouldRegressCodec()
},
PreferVideoSizeFromMedia: p.params.PreferVideoSizeFromMedia,
}, ti)
mt.OnSubscribedMaxQualityChange(p.onSubscribedMaxQualityChange)