From 07a9868bcbd117ed23a33a7f180685140007d4a5 Mon Sep 17 00:00:00 2001 From: Jonah Date: Wed, 14 Aug 2019 11:37:55 -0500 Subject: [PATCH] fix mjpegstream logic for returning screenshots (#1039) --- lib/commands/screenshots.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/screenshots.js b/lib/commands/screenshots.js index 493265932..8ad0e7a4c 100644 --- a/lib/commands/screenshots.js +++ b/lib/commands/screenshots.js @@ -17,7 +17,8 @@ commands.getScreenshot = async function getScreenshot () { }; // if we've specified an mjpeg server, use that - if (this.mjpegStrem) { + if (this.mjpegStream) { + log.info(`mjpeg video stream provided, returning latest frame as screenshot`); const data = await this.mjpegStream.lastChunkPNGBase64(); if (data) { return data;