config property

Map<String, dynamic> config
getter/setter pair

Room Config Object

  • allowProduce: Allow non-admin Peers in the Room to produce Media Streams
  • allowConsume: Allow non-admin Peers in the Room to consume Media Streams
  • allowSendData: Allow non-admin Peers in the Room to send data message
  • roomLocked: If the room is locked

Implementation

Map<String, dynamic> config = {
  'roomLocked': false,
  'allowProduce': true,
  'allowProduceSources': {
    'cam': true,
    'mic': true,
    'screen': true,
  },
  'allowConsume': true,
  'allowSendData': true,
};