Skip to content

Commit 94c1b29

Browse files
authored
Merge pull request #576 from lsloan/575-zoom-settings
2 parents 56ea51d + 7bbb967 commit 94c1b29

File tree

1 file changed

+19
-11
lines changed
  • src/officehours_api/backends

1 file changed

+19
-11
lines changed

src/officehours_api/backends/zoom.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,25 @@ def _get_client(cls, user: User) -> ZoomClient:
141141
def _create_meeting(cls, user: User) -> ZoomMeeting:
142142
"""Creates a Zoom meeting for the given user."""
143143
client = cls._get_client(user)
144-
user_id = user.profile.backend_metadata['zoom']['user_id']
145-
# Specify the meeting settings
146-
# We are initializing the meeting settings with the default settings
147-
# and then modifying the settings we want to change
148-
meeting_settings = ZoomMeetingSettings.default_settings()
149-
meeting_settings.waiting_room = True
150-
meeting_settings.join_before_host = False
151-
meeting_settings.meeting_authentication = False
152-
meeting_settings.use_pmi = False
153-
meeting_settings.contact_name = user.first_name + ' ' + user.last_name
154-
meeting_settings.contact_email = user.email
144+
meeting_settings = ZoomMeetingSettings(
145+
approval_type=2,
146+
audio='both',
147+
auto_recording='none',
148+
cn_meeting=False,
149+
contact_email=user.email,
150+
contact_name=user.get_full_name(),
151+
enforce_login=True,
152+
host_video=True,
153+
in_meeting=False,
154+
join_before_host=False,
155+
meeting_authentication=False,
156+
mute_upon_entry=False,
157+
participant_video=True,
158+
registrants_email_notification=False,
159+
use_pmi=False,
160+
waiting_room=True,
161+
watermark=False)
162+
155163
# invoke the create_meeting method of the ZoomClient instance
156164
try:
157165
meeting = client.meetings.create_meeting(

0 commit comments

Comments
 (0)