|
29 | 29 | */
|
30 | 30 | class ZoomPlugin extends Plugin
|
31 | 31 | {
|
| 32 | + const RECORDING_TYPE_CLOUD = 'cloud'; |
| 33 | + const RECORDING_TYPE_LOCAL = 'local'; |
| 34 | + const RECORDING_TYPE_NONE = 'none'; |
32 | 35 | public $isCoursePlugin = true;
|
33 | 36 |
|
34 | 37 | /**
|
35 | 38 | * @var JWTClient
|
36 | 39 | */
|
37 | 40 | private $jwtClient;
|
38 | 41 |
|
39 |
| - const RECORDING_TYPE_CLOUD = 'cloud'; |
40 |
| - const RECORDING_TYPE_LOCAL = 'local'; |
41 |
| - const RECORDING_TYPE_NONE = 'none'; |
42 |
| - |
43 | 42 | /**
|
44 | 43 | * ZoomPlugin constructor.
|
45 | 44 | * {@inheritdoc}
|
@@ -1124,6 +1123,24 @@ public function getToolbar($returnUrl = '')
|
1124 | 1123 | return Display::toolbarAction('toolbar', [$actionsLeft]);
|
1125 | 1124 | }
|
1126 | 1125 |
|
| 1126 | + public function getRecordingSetting() |
| 1127 | + { |
| 1128 | + $recording = (string) $this->get('enableCloudRecording'); |
| 1129 | + |
| 1130 | + if (in_array($recording, [self::RECORDING_TYPE_LOCAL, self::RECORDING_TYPE_CLOUD], true)) { |
| 1131 | + return $recording; |
| 1132 | + } |
| 1133 | + |
| 1134 | + return self::RECORDING_TYPE_NONE; |
| 1135 | + } |
| 1136 | + |
| 1137 | + public function hasRecordingAvailable() |
| 1138 | + { |
| 1139 | + $recording = $this->getRecordingSetting(); |
| 1140 | + |
| 1141 | + return self::RECORDING_TYPE_NONE !== $recording; |
| 1142 | + } |
| 1143 | + |
1127 | 1144 | /**
|
1128 | 1145 | * Updates meeting registrants list. Adds the missing registrants and removes the extra.
|
1129 | 1146 | *
|
@@ -1299,25 +1316,6 @@ private function createMeetingFromMeeting($meeting)
|
1299 | 1316 | return $meeting;
|
1300 | 1317 | }
|
1301 | 1318 |
|
1302 |
| - public function getRecordingSetting() |
1303 |
| - { |
1304 |
| - $recording = (string) $this->get('enableCloudRecording'); |
1305 |
| - |
1306 |
| - if (in_array($recording, [self::RECORDING_TYPE_LOCAL, self::RECORDING_TYPE_CLOUD], true)) { |
1307 |
| - |
1308 |
| - return $recording; |
1309 |
| - } |
1310 |
| - |
1311 |
| - return self::RECORDING_TYPE_NONE; |
1312 |
| - } |
1313 |
| - |
1314 |
| - public function hasRecordingAvailable() |
1315 |
| - { |
1316 |
| - $recording = $this->getRecordingSetting(); |
1317 |
| - |
1318 |
| - return self::RECORDING_TYPE_NONE !== $recording; |
1319 |
| - } |
1320 |
| - |
1321 | 1319 | /**
|
1322 | 1320 | * @throws Exception
|
1323 | 1321 | *
|
|
0 commit comments