fishjam.room
RoomConfig
class RoomConfig:
Room configuration
Attributes:
- max_peers (Union[None, Unset, int]): Maximum amount of peers allowed into the room Example: 10.
- public (Union[Unset, bool]): True if livestream viewers can omit specifying a token. Default: False.
- room_type (Union[Unset, RoomConfigRoomType]): The use-case of the room. If not provided, this defaults to conference. Default: RoomConfigRoomType.CONFERENCE.
- video_codec (Union[Unset, RoomConfigVideoCodec]): Enforces video codec for each peer in the room Default: RoomConfigVideoCodec.H264.
- webhook_url (Union[None, Unset, str]): URL where Fishjam notifications will be sent Example: https://backend.address.com/fishjam-notifications-endpoint.
init
def __init__( max_peers: Union[NoneType, Unset, int] = <Unset object>, public: Union[Unset, bool] = False, room_type: Union[Unset, RoomConfigRoomType] = <RoomConfigRoomType.CONFERENCE: 'conference'>, video_codec: Union[Unset, RoomConfigVideoCodec] = <RoomConfigVideoCodec.H264: 'h264'>, webhook_url: Union[NoneType, Unset, str] = <Unset object> )
Method generated by attrs for class RoomConfig.
max_peers
max_peers: Union[NoneType, Unset, int]
public
public: Union[Unset, bool]
room_type
room_type: Union[Unset, RoomConfigRoomType]
video_codec
video_codec: Union[Unset, RoomConfigVideoCodec]
webhook_url
webhook_url: Union[NoneType, Unset, str]
additional_properties
additional_properties: dict[str, typing.Any]
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
additional_keys
additional_keys: list[str]
RoomConfigVideoCodec
class RoomConfigVideoCodec(str, enum.Enum):
Enforces video codec for each peer in the room
H264
H264 = <RoomConfigVideoCodec.H264: 'h264'>
VP8
VP8 = <RoomConfigVideoCodec.VP8: 'vp8'>
Inherited Members
- Enum:
namevalue
RoomConfigRoomType
class RoomConfigRoomType(str, enum.Enum):
The use-case of the room. If not provided, this defaults to conference.
AUDIO_ONLY
AUDIO_ONLY = <RoomConfigRoomType.AUDIO_ONLY: 'audio_only'>
AUDIO_ONLY_LIVESTREAM
AUDIO_ONLY_LIVESTREAM = <RoomConfigRoomType.AUDIO_ONLY_LIVESTREAM: 'audio_only_livestream'>
BROADCASTER
BROADCASTER = <RoomConfigRoomType.BROADCASTER: 'broadcaster'>
CONFERENCE
CONFERENCE = <RoomConfigRoomType.CONFERENCE: 'conference'>
FULL_FEATURE
FULL_FEATURE = <RoomConfigRoomType.FULL_FEATURE: 'full_feature'>
LIVESTREAM
LIVESTREAM = <RoomConfigRoomType.LIVESTREAM: 'livestream'>
Inherited Members
- Enum:
namevalue