Introduce feature flag for split audio/video permissions.

The flag name "audio-video-permissions" will be used for this.
This commit is contained in:
Joachim Bauch 2021-10-28 09:21:14 +02:00
parent a05acc9cb4
commit 61f039bb88
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
1 changed files with 6 additions and 3 deletions

View File

@ -323,15 +323,18 @@ func (m *HelloClientMessage) CheckValid() error {
const (
// Features for all clients.
ServerFeatureMcu = "mcu"
ServerFeatureSimulcast = "simulcast"
ServerFeatureMcu = "mcu"
ServerFeatureSimulcast = "simulcast"
ServerFeatureAudioVideoPermissions = "audio-video-permissions"
// Features for internal clients only.
ServerFeatureInternalVirtualSessions = "virtual-sessions"
)
var (
DefaultFeatures []string
DefaultFeatures []string = []string{
ServerFeatureAudioVideoPermissions,
}
DefaultFeaturesInternal []string = []string{
ServerFeatureInternalVirtualSessions,
}