]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Handle new style recordings
authorPierre Ossman <ossman@cendio.se>
Tue, 5 Sep 2017 12:31:10 +0000 (14:31 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 5 Sep 2017 12:31:10 +0000 (14:31 +0200)
Newer recordings are always binary and don't include the encoding
specifier.

tests/playback-ui.js

index b5fac90fcbbcee693af818065b9cb1222e4466c2..c5197a40c7716ef2ed3d4928cc21a3d613f44eae 100644 (file)
@@ -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) {