frontend: Rename roomName to roomId in recording start process for consistency
This commit is contained in:
parent
2d4f005d3b
commit
cdf652acb8
@ -129,8 +129,8 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
async onRecordingStartRequested(event: RecordingStartRequestedEvent) {
|
async onRecordingStartRequested(event: RecordingStartRequestedEvent) {
|
||||||
try {
|
try {
|
||||||
const { roomName } = event;
|
const { roomName: roomId } = event;
|
||||||
await this.httpService.startRecording(roomName);
|
await this.httpService.startRecording(roomId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -101,8 +101,8 @@ export class HttpService {
|
|||||||
return this.getRequest(path);
|
return this.getRequest(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
startRecording(roomName: string): Promise<RecordingInfo> {
|
startRecording(roomId: string): Promise<RecordingInfo> {
|
||||||
return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/recordings`, { roomName });
|
return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/recordings`, { roomId });
|
||||||
}
|
}
|
||||||
|
|
||||||
stopRecording(recordingId: string): Promise<RecordingInfo> {
|
stopRecording(recordingId: string): Promise<RecordingInfo> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user