Checking if a Meeting is Running
To check if a meeting is currently running 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}")
Check if the meeting is running:
Use the
is_meeting_runningmethod to check if a meeting is currently running. Provide the meeting ID of the meeting you want to check.is_running_response = bbb_client.meetings.is_meeting_running( meeting_id="random-9887584" ) print(f"Is Meeting Running: {is_running_response}")
This will check if the specified meeting is currently running on your BigBlueButton server.
Is Meeting Running Parameters
The following table lists the parameters you can use when checking if a meeting is running:
Param Name |
Type |
Description |
|---|---|---|
|
String |
The meeting ID of the meeting to check. |
For more details on the isMeetingRunning API call, refer to the BigBlueButton API documentation.