diff --git a/backend/openapi/paths/recordings.yaml b/backend/openapi/paths/recordings.yaml index 19baef4..acd3f50 100644 --- a/backend/openapi/paths/recordings.yaml +++ b/backend/openapi/paths/recordings.yaml @@ -254,8 +254,8 @@ Retrieves the URL of a recording with the specified recording ID. This URL is intended to be shared with people who do not have direct access to the recording. - It can be configured to be accessible by anyone (public access) or restricted to authenticated users only, - depending on the `privateAccess` query parameter. + # It can be configured to be accessible by anyone (public access) or restricted to authenticated users only, + # depending on the `privateAccess` query parameter. tags: - OpenVidu Meet - Recordings security: @@ -264,7 +264,7 @@ - recordingTokenCookie: [] parameters: - $ref: '../components/parameters/recording-id.yaml' - - $ref: '../components/parameters/private-access.yaml' + # - $ref: '../components/parameters/private-access.yaml' responses: '200': $ref: '../components/responses/success-get-recording-url.yaml' diff --git a/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.html b/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.html index d17ff38..57af033 100644 --- a/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.html +++ b/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.html @@ -14,7 +14,7 @@ } -
+
@if (loading) { diff --git a/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.ts b/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.ts index 243e48e..d674379 100644 --- a/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.ts +++ b/frontend/projects/shared-meet-components/src/lib/components/dialogs/share-recording-dialog/share-recording-dialog.component.ts @@ -1,5 +1,5 @@ import { Clipboard } from '@angular/cdk/clipboard'; -import { Component, Inject } from '@angular/core'; +import { Component, Inject, OnInit } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { @@ -37,7 +37,7 @@ import { RecordingService } from '@lib/services'; templateUrl: './share-recording-dialog.component.html', styleUrl: './share-recording-dialog.component.scss' }) -export class ShareRecordingDialogComponent { +export class ShareRecordingDialogComponent implements OnInit { accessType: 'private' | 'public' = 'public'; recordingUrl?: string; private initialRecordingUrl?: string; @@ -55,6 +55,14 @@ export class ShareRecordingDialogComponent { this.initialRecordingUrl = data.recordingUrl; } + // TODO: Remove this when having multiple users + async ngOnInit() { + if (!this.initialRecordingUrl) { + await this.getRecordingUrl(); + this.initialRecordingUrl = this.recordingUrl; + } + } + async getRecordingUrl() { this.loading = true; this.erroMessage = undefined;