Joining a Meeting
To join a meeting using the python-sage-bbb package, follow these steps:
Import the necessary modules:
from sage_bbb.services.client import BigBlueButtonClient
Initialize the client:
Initialize the client with your BigBlueButton server URL and security salt. Replace the placeholder values with your actual server URL and security salt.
bbb_client = BigBlueButtonClient( "http://your-bbb-server.com/bigbluebutton/api/", "your-security-salt", )
Create a new meeting:
If you haven’t already created a meeting, use the
create_meetingmethod to do so.new_meeting = bbb_client.meetings.create_meeting( name="Test Meeting", meeting_id="random-9887584", attendee_pw="ap", moderator_pw="mp", record=True, # Enable recording allowStartStopRecording=True ) print(f"New Meeting: {new_meeting}")
Join the meeting as a moderator:
Use the
join_meetingmethod to generate a join URL for a moderator. Replace the full_name and password parameters with the appropriate values.join_url_moderator = bbb_client.meetings.join_meeting( meeting_id="random-9887584", full_name="Moderator", password="mp" ) print(f"Join URL (Moderator): {join_url_moderator}")
Join the meeting as an attendee:
Similarly, use the
join_meetingmethod to generate a join URL for an attendee. Replace the full_name and password parameters with the appropriate values.join_url_attendee = bbb_client.meetings.join_meeting( meeting_id="random-9887584", full_name="Attendee", password="ap" ) print(f"Join URL (Attendee): {join_url_attendee}")
This will generate URLs that can be used to join the meeting as either a moderator or an attendee.
Join Meeting Parameters
The following table lists the parameters you can use when joining a meeting:
Param Name |
Type |
Description |
|---|---|---|
|
String |
The full name of the user joining the meeting. |
|
String |
The meeting ID of the meeting to join. |
|
String |
The password for the meeting (either attendee or moderator). |
|
Number |
The time when the meeting was created. |
|
String |
The user ID of the user joining the meeting. |
|
String |
The web voice conference number. |
|
String |
A token for configuration settings. |
|
String |
The default layout for the meeting. |
|
String |
The URL of the avatar image for the user. |
|
Boolean |
Whether to redirect the user after joining. |
|
String |
The URL for the client. |
|
Boolean |
Whether the user is joining as a guest. |
|
String |
The status of the guest user. |
|
String |
Additional user data. |
For more details on the join API call, refer to the BigBlueButton API documentation.