MediaSFU React Native (Expo)
    Preparing search index...

    Function getPermissionConfigFromEventSettings

    • Creates a PermissionConfig from event settings. This is useful when permissionConfig is not yet set, extracting initial values from the room's event settings. Both level0 and level1 will have the same initial permissions.

      Parameters

      • audioSetting: string = "approval"

        'allow' | 'approval' | 'disallow'

      • videoSetting: string = "approval"

        'allow' | 'approval' | 'disallow'

      • screenshareSetting: string = "disallow"

        'allow' | 'approval' | 'disallow'

      • chatSetting: string = "allow"

        'allow' | 'disallow'

      Returns PermissionConfig

      PermissionConfig with both levels set to the same permissions