Ending a Meeting
To end 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}")
End the meeting:
Use the
end_meetingmethod to end the meeting. Provide the meeting ID and the moderator password of the meeting you want to end.end_meeting_response = bbb_client.meetings.end_meeting( meeting_id="random-9887584", moderator_pw="mp" ) print(f"End Meeting Response: {end_meeting_response}")
This will end the specified meeting on your BigBlueButton server.
End Meeting Parameters
The following table lists the parameters you can use when ending a meeting:
Param Name |
Type |
Description |
|---|---|---|
|
String |
The meeting ID of the meeting to end. |
|
String |
The password for the meeting (usually the moderator password). |
For more details on the end API call, refer to the BigBlueButton API documentation.