From: Pierre Ossman Date: Tue, 5 Sep 2017 12:31:10 +0000 (+0200) Subject: Handle new style recordings X-Git-Tag: v1.0.0~96 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b05a7b1dcfd8ec618c2b7ab64c8fdb31558ab10d;p=mirror_novnc.git Handle new style recordings Newer recordings are always binary and don't include the encoding specifier. --- diff --git a/tests/playback-ui.js b/tests/playback-ui.js index b5fac90..c5197a4 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) {