068b82b1fa
Remove parts of a previous connection monitor.
To add some context (as far as my memory goes) to the multiple connection
monitor features the product has, `stats` (currently named `connection status`)
was introduced at the Flash client back in ~2016. @fcecagno and I did it
as a BigBlueButton's Summit activity. Our work was squashed into a single
commit in 92554f8b3e
:).
I'm not sure about the whole story behind `network information` (the late
connection monitor added to the HTML5 client) but I assume it should work
as a collector for a bunch of different connectivity monitors. I remember
when it was introduced but I don't know why it wasn't adopted. My best guess
would be because of some performance issues the `user list` had back then.
To follow on why `connection status` replaced `network information` at the
HTML5 client, when I did the `multiple webcams` feature I had to refactor
a big chunk of the `video provider` (#8374). Something that wasn't really
helping there was the adaptation of `stats` that was made to show local
feedback for each webcam connection. Although this feature wasn't being
used anymore, `network information` did rely on that to build up data. With
this monitor gone I assumed it was my responsibility to provide an alternative
so I promoted Mconf's port of the Flash `stats` monitor to BigBlueButton's
HTML5 client (#8579).
Well, that's my perspective on how things went for those features. If
anyone would like to correct me on something or add something else on
that history I would appreciate to know.
72 lines
3.7 KiB
JavaScript
Executable File
72 lines
3.7 KiB
JavaScript
Executable File
import Meetings from '/imports/api/meetings';
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
import { removeAnnotationsStreamer } from '/imports/api/annotations/server/streamer';
|
|
import { removeCursorStreamer } from '/imports/api/cursor/server/streamer';
|
|
import { removeExternalVideoStreamer } from '/imports/api/external-videos/server/streamer';
|
|
|
|
import clearUsers from '/imports/api/users/server/modifiers/clearUsers';
|
|
import clearUsersSettings from '/imports/api/users-settings/server/modifiers/clearUsersSettings';
|
|
import clearGroupChat from '/imports/api/group-chat/server/modifiers/clearGroupChat';
|
|
import clearGuestUsers from '/imports/api/guest-users/server/modifiers/clearGuestUsers';
|
|
import clearBreakouts from '/imports/api/breakouts/server/modifiers/clearBreakouts';
|
|
import clearAnnotations from '/imports/api/annotations/server/modifiers/clearAnnotations';
|
|
import clearSlides from '/imports/api/slides/server/modifiers/clearSlides';
|
|
import clearPolls from '/imports/api/polls/server/modifiers/clearPolls';
|
|
import clearCaptions from '/imports/api/captions/server/modifiers/clearCaptions';
|
|
import clearPresentationPods from '/imports/api/presentation-pods/server/modifiers/clearPresentationPods';
|
|
import clearVoiceUsers from '/imports/api/voice-users/server/modifiers/clearVoiceUsers';
|
|
import clearUserInfo from '/imports/api/users-infos/server/modifiers/clearUserInfo';
|
|
import clearConnectionStatus from '/imports/api/connection-status/server/modifiers/clearConnectionStatus';
|
|
import clearScreenshare from '/imports/api/screenshare/server/modifiers/clearScreenshare';
|
|
import clearNote from '/imports/api/note/server/modifiers/clearNote';
|
|
import clearMeetingTimeRemaining from '/imports/api/meetings/server/modifiers/clearMeetingTimeRemaining';
|
|
import clearLocalSettings from '/imports/api/local-settings/server/modifiers/clearLocalSettings';
|
|
import clearRecordMeeting from './clearRecordMeeting';
|
|
import clearExternalVideoMeeting from './clearExternalVideoMeeting';
|
|
import clearVoiceCallStates from '/imports/api/voice-call-states/server/modifiers/clearVoiceCallStates';
|
|
import clearVideoStreams from '/imports/api/video-streams/server/modifiers/clearVideoStreams';
|
|
import clearAuthTokenValidation from '/imports/api/auth-token-validation/server/modifiers/clearAuthTokenValidation';
|
|
import clearUsersPersistentData from '/imports/api/users-persistent-data/server/modifiers/clearUsersPersistentData';
|
|
|
|
import clearWhiteboardMultiUser from '/imports/api/whiteboard-multi-user/server/modifiers/clearWhiteboardMultiUser';
|
|
import Metrics from '/imports/startup/server/metrics';
|
|
|
|
export default function meetingHasEnded(meetingId) {
|
|
if (!process.env.BBB_HTML5_ROLE || process.env.BBB_HTML5_ROLE === 'frontend') {
|
|
removeAnnotationsStreamer(meetingId);
|
|
removeCursorStreamer(meetingId);
|
|
removeExternalVideoStreamer(meetingId);
|
|
}
|
|
|
|
return Meetings.remove({ meetingId }, () => {
|
|
clearCaptions(meetingId);
|
|
clearGroupChat(meetingId);
|
|
clearGuestUsers(meetingId);
|
|
clearPresentationPods(meetingId);
|
|
clearBreakouts(meetingId);
|
|
clearPolls(meetingId);
|
|
clearAnnotations(meetingId);
|
|
clearSlides(meetingId);
|
|
clearUsers(meetingId);
|
|
clearUsersSettings(meetingId);
|
|
clearVoiceUsers(meetingId);
|
|
clearUserInfo(meetingId);
|
|
clearConnectionStatus(meetingId);
|
|
clearNote(meetingId);
|
|
clearLocalSettings(meetingId);
|
|
clearMeetingTimeRemaining(meetingId);
|
|
clearRecordMeeting(meetingId);
|
|
clearExternalVideoMeeting(meetingId);
|
|
clearVoiceCallStates(meetingId);
|
|
clearVideoStreams(meetingId);
|
|
clearAuthTokenValidation(meetingId);
|
|
clearWhiteboardMultiUser(meetingId);
|
|
clearScreenshare(meetingId);
|
|
clearUsersPersistentData(meetingId);
|
|
Metrics.removeMeeting(meetingId);
|
|
|
|
Logger.info(`Cleared Meetings with id ${meetingId}`);
|
|
});
|
|
}
|