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

    Function updatePermissionConfig

    • Updates the permission configuration for the room. Only hosts (islevel === "2") can update the configuration.

      Parameters

      Returns Promise<void>

      await updatePermissionConfig({
      socket,
      config: {
      level0: { useMic: "disallow", useCamera: "disallow", useScreen: "disallow", useChat: "allow" },
      level1: { useMic: "allow", useCamera: "allow", useScreen: "allow", useChat: "allow" },
      },
      member: "currentUser",
      islevel: "2",
      roomName: "room123",
      showAlert: (alert) => console.log(alert.message),
      });