Ever wanted to automatically "Join", "Admit People", and then "Automatically Leave (or End the call)". I wanted one, could not find one which suits my taste and hence I compiled this application. Have a read below.
I developed this code solely because my mother is a teacher. As the pandemic is raging, her school started taking online classes. If I assume every class has around 40 students
at an average and she takes at least 6 periods a day, thats around 6 x 40 = 240
students at an average. If she teaches from a Tablet or a Laptop, she has to admit students after students. If around an average of 7 to 10 comes in a bunch at the very begining, then for every class it's 40 - 10 = 30
clicks on an average. For 6 periods, that's aroung 180 clicks a day
. For 5 days in a week for 4 weeks i.e. aroung 180 * 20 clicks
= 3600 clicks
per month at the same location for a tablet on the screen or via a trackpad. Just think about the trackpad or mouse clicking noise, that alone will keep you awake all night.
Worst Case Scenario Google Meet from mobile, and single clicks for each 40 students, 6 times a day, 5 days a week and for 4 weeks.
Unlike Zoom, Google Meet has no option of disabling the waiting room (or lobby).
One can always schedule a meeting from Google Calendar and paste all the email-address(es) as invitees. The only disadvantage being any one can join before the host (atleast 15 minutes before) and misuse the platform or keep chatting. To disable this you can see Foot Note option @@.
Google for all it's used now has host options with the following features:
- Turn off video for all.
- Turn off microphone for all.
- Revoke permission for share screen.
- Revoke permission for in-call messages (chat).
- Gives option for End meeting for all or Leave Meeting, when hangup button is pressed.
💡 The code below assumes a Google Workspace User as host of meeting, with active hand-raise# ✋ feature. Some additional features are not listed here and can be found at footnote @.
Refer index.js below.
- Automatically join google meet by pressing the "JOIN" button itself at your preferred time.
- Automatically admit people in the waiting room by pressing "Admit All" or "Admit" from preferred time.
- If you want to stop auto-admit of people in waiting room from a certain time, you may do so at your prefered time.
- Automatically leave (or end the call), by pressing hangup at a preferred time.
- Lowering the hand# (forcefully or automatically).
- Open Developer Console (DevTools), either by pressing
F12, or Ctrl + Shift + I
or on MacCmd + Opt + I
. - Copy paste the code in the developers console.
- Call the function
google_meet_function
with the appropiate arguments.
A comprehensive documentation is given below. Please also read the footnotes to understand any cross-references.
-
join_time_arr1
: The variable controls the joining time from joining page. The significantJOIN NOW
is clicked. Refer to contents ofSchema 1
. -
admit_time_arr2
: The variable controls the time from when the auto-admit feature should be started ✅. The algorithm auto-detectsAdmit All
orAdmit
as and when presented and clicks the same. Refer to contents ofSchema 1
. -
pause_admit_time_arr3
: The variable controls the time after which no auto-admit (if enabled) will function. Refer to contents ofSchema 1
. -
leave_meeting_time_arr4
: The variable controls the time to exit the Google Meet Session, by clicking the hangup button. As this gives two options the scenarios are explained: - Clicking End the class: If the parameterforce_leave
istrue
, the same option is clicked. - Clickng Just Leave the call: If the parameterforce_leave
isfalse
, the same option is clicked. Refer to contents ofSchema 1
. -
force_leave
: The variable controls which option to click after hangup is clicked. Refer above to documentation provided atleave_meeting_time_arr4
. The variable is itself of type boolean accepting eithertrue
orfalse
. -
leave_latency
: This is an integer and it actually the count of the number of seconds to wait beforeEnding the call
orJust leaving the call
as set by theforce_leave
parameter. -
lower_hand
#: Iftrue
all hands (including the host(s)) will be lowered.
- Schema 1:
- Variable Type:
array[]
- Contents:
HH
for hours.MM
for minutes.SS
for seconds.
@throws
:- If
HH
is missing, an error is raised. - If either of
HH
orMM
orSS
is/are negative (i.e. less than 0), then NegativeNumberError is raised.
- If
- Variable Type:
Google can solve this problem, just by one addition, a button which toggles off to disable the lobby. This is an open source code. I am eager to see people make use of it and extend it.
- @ Few features are available for Google Workspace Users like Breakout Rooms, Polls, Hand Raise, Recording, Ask a Question & Assigning a Co-Host.
- @@ A feature for paid users are available in Google Calendar & Host Controls of Google Meet, where you can turn off Quick Access, to restrict users to see or interact with each other before the host joins.
- # To lower hand, please keep the side panel open.