• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/integration/zoom/recording.php
  • Класс: BitrixSocialServicesIntegrationZoomRecording
  • Вызов: Recording::onRecordingStopped
static function onRecordingStopped(int $conferenceId, array $recordingsData): Result
{
	$result = new Result();
	if (!Loader::includeModule('socialservices'))
	{
		return $result->addError(new Error('Module socialservices is not installed.'));
	}
	$conferenceRecord = ZoomMeetingTable::getRowByExternalId($conferenceId);
	if (!$conferenceRecord)
	{
		return $result->addError(new Error('Conference is not found'));
	}
	$updateResult = ZoomMeetingTable::update($conferenceRecord['ID'], [
		'HAS_RECORDING' => 'Y'
	]);
	if (!$updateResult->isSuccess())
	{
		return $result->addErrors($updateResult->getErrors());
	}
	return $result;
}