Skip to main content
Version: 0.29.0

fishjam.room

RoomConfig​

class RoomConfig:

Room configuration

Attributes:

  • batch_webhook_notifications (bool | Unset): If true, webhook notifications for this room are coalesced into a single NotificationBatch per HTTP send instead of one request per notification. VAD notifications are unaffected. Default: False.
  • max_peers (int | None | Unset): Maximum amount of peers allowed into the room Example: 10.
  • public (bool | Unset): True if livestream viewers can omit specifying a token. Default: False.
  • room_type (RoomType | Unset): The use-case of the room. If not provided, this defaults to conference.
  • video_codec (VideoCodec | Unset): Enforces video codec for each peer in the room
  • webhook_url (None | str | Unset): Deprecated: configure the webhook in the Dashboard instead. URL where Fishjam notifications will be sent; overrides the Dashboard-configured webhook URL Example: https://backend.address.com/fishjam-notifications-endpoint.

init​

def __init__( batch_webhook_notifications: bool | Unset = False, max_peers: int | None | Unset = <Unset object>, public: bool | Unset = False, room_type: RoomType | Unset = <Unset object>, video_codec: VideoCodec | Unset = <Unset object>, webhook_url: None | str | Unset = <Unset object> )

Method generated by attrs for class RoomConfig.

batch_webhook_notifications​

batch_webhook_notifications: bool | Unset

max_peers​

max_peers: int | None | Unset

public​

public: bool | Unset

room_type​

room_type: RoomType | Unset

video_codec​

video_codec: VideoCodec | Unset

webhook_url​

webhook_url: None | str | Unset

to_dict​

def to_dict(self) -> dict[str, typing.Any]

from_dict​

def from_dict(cls: type[~T], src_dict: Mapping[str, typing.Any]) -> ~T

VideoCodec​

class VideoCodec(str, enum.Enum):

Enforces video codec for each peer in the room

H264​

H264 = <VideoCodec.H264: 'h264'>

VP8​

VP8 = <VideoCodec.VP8: 'vp8'>

Inherited Members​

  • Enum:
    • name
    • value

RoomType​

class RoomType(str, enum.Enum):

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

AUDIO_ONLY​

AUDIO_ONLY = <RoomType.AUDIO_ONLY: 'audio_only'>

AUDIO_ONLY_LIVESTREAM​

AUDIO_ONLY_LIVESTREAM = <RoomType.AUDIO_ONLY_LIVESTREAM: 'audio_only_livestream'>

BROADCASTER​

BROADCASTER = <RoomType.BROADCASTER: 'broadcaster'>

CONFERENCE​

CONFERENCE = <RoomType.CONFERENCE: 'conference'>

FULL_FEATURE​

FULL_FEATURE = <RoomType.FULL_FEATURE: 'full_feature'>

LIVESTREAM​

LIVESTREAM = <RoomType.LIVESTREAM: 'livestream'>

Inherited Members​

  • Enum:
    • name
    • value