Skip to content

Commit

Permalink
Fix/recording bug (#100)
Browse files Browse the repository at this point in the history
* feat/ start record and finish record tutoring

* feat/ start record and finish record tutoring
  • Loading branch information
seongyunlee authored Oct 20, 2023
1 parent c380260 commit 3067223
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/agora/agora.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class AgoraService {
const boardChannelId = boardChannel.whiteBoardUUID;
const boardRoomToken = await this.makeWhiteBoardToken(boardChannelId);
const voiceAppId = process.env.AGORA_RTC_APP_ID;
const voiceChannelId = tutoringId; //agora 에서 voice Channel은 questionId와 동일
const voiceChannelId = voiceChannel; //agora 에서 voice Channel은 questionId와 동일
const voiceUid = 3;
const voiceRoomToken = await this.makeRtcToken(voiceChannelId, voiceUid);
const queryParams = new URLSearchParams();
Expand Down Expand Up @@ -143,6 +143,10 @@ export class AgoraService {
),
);
const { cname, uid, resourceId } = data;
console.log(
'url',
`${process.env.AGORA_RECORDING_SOURCE}?${queryParams.toString()}`,
);
const startResult = await firstValueFrom(
this.httpService.post(
`https://api.agora.io/v1/apps/${process.env.AGORA_RECORDING_APP_ID}/cloud_recording/resourceid/${resourceId}/mode/web/start`,
Expand Down

0 comments on commit 3067223

Please sign in to comment.