From b05a7b1dcfd8ec618c2b7ab64c8fdb31558ab10d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 5 Sep 2017 14:31:10 +0200 Subject: [PATCH] Handle new style recordings Newer recordings are always binary and don't include the encoding specifier. --- tests/playback-ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/playback-ui.js b/tests/playback-ui.js index b5fac90f..c5197a40 100644 --- a/tests/playback-ui.js +++ b/tests/playback-ui.js @@ -47,7 +47,9 @@ function enableUI() { startButton.addEventListener('click', start); frames = VNC_frame_data; - encoding = VNC_frame_encoding; + // Only present in older recordings + if (window.VNC_frame_encoding) + encoding = VNC_frame_encoding; } const notification = function (rfb, mesg, level, options) {