mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 07:19:06 +02:00
add legacy simulcast stream that shows pointer.
This commit is contained in:
parent
b3b31fba1f
commit
373e9970f9
5 changed files with 48 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue