summaryrefslogtreecommitdiffstats
path: root/lib/Controller/RecordingController.php
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-05 06:14:43 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-14 10:37:19 +0100
commitaf83fb60406ef099908c152047b92f9ea37d7e49 (patch)
treed8cf6b9b69b046840559f0b9d1fa739e4c08792b /lib/Controller/RecordingController.php
parentef42841772e4f9b93f9a633a819fd2c5fca71df1 (diff)
Send requests to the recording server to start and stop recordings
The owner of the recording must be provided when starting it to be able to later store it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/Controller/RecordingController.php')
-rw-r--r--lib/Controller/RecordingController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/RecordingController.php b/lib/Controller/RecordingController.php
index 3417800f7..aeab534e5 100644
--- a/lib/Controller/RecordingController.php
+++ b/lib/Controller/RecordingController.php
@@ -39,6 +39,7 @@ class RecordingController extends AEnvironmentAwareController {
public function __construct(
string $appName,
IRequest $request,
+ private ?string $userId,
private Config $talkConfig,
private IClientService $clientService,
private RecordingService $recordingService,
@@ -114,7 +115,7 @@ class RecordingController extends AEnvironmentAwareController {
*/
public function start(int $status): DataResponse {
try {
- $this->recordingService->start($this->room, $status);
+ $this->recordingService->start($this->room, $status, $this->userId);
} catch (InvalidArgumentException $e) {
return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST);
}