From 8c54c2e2fcbf2e2fc72fdc023fc335c2540ca847 Mon Sep 17 00:00:00 2001 From: shtolik Date: Fri, 19 May 2023 10:42:57 +0300 Subject: [PATCH] Fix for using proper resolution when starting archiving (https://github.com/opentok/learning-opentok-node/issues/50) --- routes/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 3a08c3b..7a96122 100644 --- a/routes/index.js +++ b/routes/index.js @@ -174,7 +174,8 @@ router.post('/captions/:captionsId/stop', postBodyParser, async (req, res) => { router.post('/archive/start', function (req, res) { const json = req.body; const sessionId = json.sessionId; - opentok.startArchive(sessionId, { name: findRoomFromSessionId(sessionId) }, function (err, archive) { + opentok.startArchive(sessionId, { name: findRoomFromSessionId(sessionId), hasAudio: json.hasAudio, hasVideo: json.hasVideo, resolution: json.resolution }, function (err, archive) { + console.log('attempting to start archive with parameters:' + json); if (err) { console.error('error in startArchive'); console.error(err);