add legacy simulcast stream that shows pointer.

This commit is contained in:
Miroslav Šedivý 2024-09-07 21:13:40 +02:00
parent b3b31fba1f
commit 373e9970f9
5 changed files with 48 additions and 2 deletions

View file

@ -359,9 +359,17 @@ func (s *Capture) Set() {
"min-quantizer": "4",
"max-quantizer": "20",
},
ShowPointer: viper.GetBool("legacy"),
},
}
s.VideoIDs = []string{"main"}
if viper.GetBool("legacy") {
legacyPipeline := s.VideoPipelines["main"]
legacyPipeline.ShowPointer = true
s.VideoPipelines["legacy"] = legacyPipeline
// we do not add legacy to VideoIDs so that its ignored by bandwidth estimator
}
}
// audio
@ -463,7 +471,13 @@ func (s *Capture) SetV2() {
"main": {
GstPipeline: pipeline,
},
"legacy": {
GstPipeline: pipeline,
ShowPointer: true,
},
}
// we do not add legacy to VideoIDs so that its ignored by bandwidth estimator
s.VideoIDs = []string{"main"}
// TODO: add deprecated warning and proper alternative
}
}