Add system events when deleting a BBB recording BT#17007

pull/3174/head
Julio Montoya 6 years ago
parent 1a72cf81c5
commit ed960bbf0e
  1. 30
      plugin/bbb/lib/bbb.lib.php

@ -1117,6 +1117,16 @@ class bbb
$pass = $meetingData['attendee_pw'];
}
Event::addEvent(
'bbb_end_meeting',
'meeting_id',
(int) $id,
null,
api_get_user_id(),
api_get_course_int_id(),
api_get_session_id()
);
$endParams = array(
'meetingId' => $meetingData['remote_id'], // REQUIRED - We have to know which meeting to end.
'password' => $pass, // REQUIRED - Must match moderator pass for meeting.
@ -1517,6 +1527,16 @@ class bbb
'first'
);
Event::addEvent(
'bbb_regenerate_record',
'record_id',
(int) $recordId,
null,
api_get_user_id(),
api_get_course_int_id(),
api_get_session_id()
);
// Check if there are recordings for this meeting
$recordings = $this->api->getRecordings(['meetingId' => $meetingData['remote_id']]);
if (!empty($recordings) && isset($recordings['messageKey']) && $recordings['messageKey'] === 'noRecordings') {
@ -1574,6 +1594,16 @@ class bbb
'first'
);
Event::addEvent(
'bbb_delete_record',
'meeting_id',
$id,
null,
api_get_user_id(),
api_get_course_int_id(),
api_get_session_id()
);
$delete = false;
// Check if there are recordings for this meeting
$recordings = $this->api->getRecordings(['meetingId' => $meetingData['remote_id']]);

Loading…
Cancel
Save