forked from kelleyk/noVNC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates vnc_perf.html so that it works with the current version of noVNC. It also introduces a utility to convert noVNC session recordings recorded in base64-mode to binary-mode recordings, since noVNC no longer supports base64-mode. Fixes novnc#479.
- Loading branch information
1 parent
4649448
commit 4ee55e0
Showing
3 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env perl | ||
use MIME::Base64; | ||
|
||
for (<>) { | ||
unless (/^'([{}])(\d+)\1(.+?)',$/) { | ||
print; | ||
next; | ||
} | ||
|
||
my ($dir, $amt, $b64) = ($1, $2, $3); | ||
|
||
my $decoded = MIME::Base64::decode($b64) or die "Could not base64-decode line `$_`"; | ||
|
||
my $decoded_escaped = join "", map { "\\x$_" } unpack("(H2)*", $decoded); | ||
|
||
print "'${dir}${amt}${dir}${decoded_escaped}',\n"; | ||
} |