Add feature flag "simulcast".

This commit is contained in:
Joachim Bauch
2021-06-08 13:49:09 +02:00
parent 0a8ce3bda3
commit 8a87a0d602
2 changed files with 6 additions and 1 deletions
+2 -1
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
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)
}
}