MeetingConfig - Python
MeetingConfig dataclass simplifies configuration of meeting.
dataclass is decorater for user-defined classes, it was originally described in pep-0557
Meeting Config
from videosdk import MeetingConfig
meeting_config = MeetingConfig(
meeting_id=MEETING_ID,
name=NAME,
mic_enabled=True,
webcam_enabled=True,
token=VIDEOSDK_TOKEN
)
MeetingConfig Parameters
meeting_id
-
Unique Id of the meeting where that participant will be joining.
- type :
str REQUIRED
- type :
Please refer this documentation to create a room.
name
-
Name of the participant who will be joining the meeting, this name will be displayed to other participants in the same meeting.
- type :
str REQUIRED
- type :
mic_enabled
-
Whether
micof the participant will be on while joining the meeting. If it is set tofalse, then mic of that participant will bedisabledby default, but can beenabledordisabledlater.- type:
bool REQUIRED
- type:
webcam_enabled
-
Whether
webcamof the participant will be on while joining the meeting. If it is set tofalse, then webcam of that participant will bedisabledby default, but can beenabledordisabledlater.- type:
bool REQUIRED
- type:
token
-
The auth token generated from your server.
- type:
str REQUIRED
- type:
Please refer this documentation to generate a token.
participant_id
-
You can specify your custom participantId here.
- type:
str OPTIONAL
- type:
custom_camera_video_track
-
Set the initial custom video track using different encoding parameters, camera facing mode, and optimization mode.
- type:
MediaStreamTrack OPTIONAL
- type:
custom_microphone_audio_track
-
Set the initial custom audio track using different encoding parameters and optimization mode.
- type:
MediaStreamTrack OPTIONAL
- type:
mode
-
OPTIONAL -
Controls whether the participant sends and/or receives media:
-
SEND_AND_RECV: Produce and consume media (audio and video). This is the default. -
RECV_ONLY: Only consume media; the participant does not produce audio or video. -
SIGNALLING_ONLY: Neither produce nor consume media, for signalling-only participants. -
defaultValue :
SEND_AND_RECV
-
CONFERENCE and VIEWER are deprecated. Use SEND_AND_RECV and RECV_ONLY instead.
meta_data
-
If you want to provide additional details about a user joining a meeting, such as their profile image, you can pass that information in this parameter.
- type:
Dict OPTIONAL
- type:
auto_consume
-
Whether the participant automatically consumes (receives) other participants' media streams. When set to
false, you consume streams manually.- type:
bool - defaultValue :
true OPTIONAL
- type:
chat_enabled
-
Whether the data channel used for chat and
meeting.send(...)messaging is enabled for this participant.- type:
bool - defaultValue :
true OPTIONAL
- type:
debug_mode
-
Whether SDK debug logging is enabled.
- type:
bool - defaultValue :
true OPTIONAL
- type:
preferred_protocol
-
OPTIONAL -
There are 2 types of protocol:
-
UDP_ONLY: Force the UDP protocol. This is the default. -
UDP_OVER_TCP: Attempt UDP first, and fall back to TCP if UDP fails. -
defaultValue :
UDP_ONLY
-
signaling_base_url
-
Proxy URL to origin signaling and media.
- type:
str OPTIONAL
- type:
Got a Question? Ask us on discord

