Skip to content

Commit

Permalink
fix: retrieve recording in meetings (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d authored Nov 14, 2023
1 parent d2f4d2e commit 5d75383
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions meetings/retrieve-recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' });

const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const SESSION_ID = process.env.SESSION_ID;
const RECORDING_ID = process.env.RECORDING_ID;

const { Auth } = require('@vonage/auth');
const { Meetings } = require('@vonage/meetings');
Expand All @@ -14,6 +14,4 @@ const credentials = new Auth({
const options = {};

const meetingsClient = new Meetings(credentials, options);
for await (const recording of meetingsClient.getSessionRecordings(SESSION_ID)) {
console.log(recording);
}
const recording = await meetingsClient.getRecording(RECORDING_ID);

0 comments on commit 5d75383

Please sign in to comment.