Skip to content

Commit

Permalink
Fix for using proper resolution when starting archiving (opentok#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
shtolik committed May 19, 2023
1 parent 6fc6c47 commit 8c54c2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c54c2e

Please sign in to comment.