Room configuration

RoomConfig

interface RoomConfig {
    maxPeers?: null | number;
    peerDisconnectedTimeout?: null | number;
    peerlessPurgeTimeout?: null | number;
    roomType?: RoomConfigRoomTypeEnum;
    videoCodec?: null | RoomConfigVideoCodecEnum;
    webhookUrl?: null | string;
}

Properties

maxPeers?: null | number

Maximum amount of peers allowed into the room

RoomConfig

peerDisconnectedTimeout?: null | number

Duration (in seconds) after which the peer will be removed if it is disconnected. If not provided, this feature is disabled.

RoomConfig

peerlessPurgeTimeout?: null | number

Duration (in seconds) after which the room will be removed if no peers are connected. If not provided, this feature is disabled.

RoomConfig

The use-case of the room. If not provided, this defaults to full_feature.

RoomConfig

videoCodec?: null | RoomConfigVideoCodecEnum

Enforces video codec for each peer in the room

RoomConfig

webhookUrl?: null | string

URL where Fishjam notifications will be sent

RoomConfig