Add feature flag "simulcast".

This commit is contained in:
Joachim Bauch 2021-04-29 08:59:15 +02:00
parent 0a8ce3bda3
commit 8a87a0d602
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
2 changed files with 6 additions and 1 deletions

View File

@ -323,7 +323,8 @@ func (m *HelloClientMessage) CheckValid() error {
const (
// Features for all clients.
ServerFeatureMcu = "mcu"
ServerFeatureMcu = "mcu"
ServerFeatureSimulcast = "simulcast"
// Features for internal clients only.
ServerFeatureInternalVirtualSessions = "virtual-sessions"

4
hub.go
View File

@ -356,11 +356,15 @@ func (h *Hub) SetMcu(mcu Mcu) {
h.mcu = mcu
if mcu == nil {
removeFeature(h.info, ServerFeatureMcu)
removeFeature(h.info, ServerFeatureSimulcast)
removeFeature(h.infoInternal, ServerFeatureMcu)
removeFeature(h.infoInternal, ServerFeatureSimulcast)
} else {
log.Printf("Using a timeout of %s for MCU requests", h.mcuTimeout)
addFeature(h.info, ServerFeatureMcu)
addFeature(h.info, ServerFeatureSimulcast)
addFeature(h.infoInternal, ServerFeatureMcu)
addFeature(h.infoInternal, ServerFeatureSimulcast)
}
}