Add feature flag "simulcast".
This commit is contained in:
parent
0a8ce3bda3
commit
8a87a0d602
|
@ -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
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…
Reference in New Issue