Browse Source

Add feature flag "simulcast".

pull/104/head
Joachim Bauch 6 months ago
parent
commit
8a87a0d602
No known key found for this signature in database GPG Key ID: 77C1D22D53E15F02
  1. 3
      api_signaling.go
  2. 4
      hub.go

3
api_signaling.go

@ -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

@ -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)
}
}

Loading…
Cancel
Save