Skip to content

Commit

Permalink
Merge pull request #576 from lsloan/575-zoom-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lsloan authored Nov 4, 2024
2 parents 56ea51d + 7bbb967 commit 94c1b29
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/officehours_api/backends/zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,25 @@ def _get_client(cls, user: User) -> ZoomClient:
def _create_meeting(cls, user: User) -> ZoomMeeting:
"""Creates a Zoom meeting for the given user."""
client = cls._get_client(user)
user_id = user.profile.backend_metadata['zoom']['user_id']
# Specify the meeting settings
# We are initializing the meeting settings with the default settings
# and then modifying the settings we want to change
meeting_settings = ZoomMeetingSettings.default_settings()
meeting_settings.waiting_room = True
meeting_settings.join_before_host = False
meeting_settings.meeting_authentication = False
meeting_settings.use_pmi = False
meeting_settings.contact_name = user.first_name + ' ' + user.last_name
meeting_settings.contact_email = user.email
meeting_settings = ZoomMeetingSettings(
approval_type=2,
audio='both',
auto_recording='none',
cn_meeting=False,
contact_email=user.email,
contact_name=user.get_full_name(),
enforce_login=True,
host_video=True,
in_meeting=False,
join_before_host=False,
meeting_authentication=False,
mute_upon_entry=False,
participant_video=True,
registrants_email_notification=False,
use_pmi=False,
waiting_room=True,
watermark=False)

# invoke the create_meeting method of the ZoomClient instance
try:
meeting = client.meetings.create_meeting(
Expand Down

0 comments on commit 94c1b29

Please sign in to comment.