Skip to main content
Version: 0.26.0

fishjam.room

RoomConfig

class RoomConfig:

Room configuration

Attributes:

  • 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): URL where Fishjam notifications will be sent Example: https://backend.address.com/fishjam-notifications-endpoint.

init

def __init__( 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.

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