From 3de4a33d1c4d739b47db6d80dd31dea3bb85b746 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 23 Jun 2020 12:11:15 -0700 Subject: [PATCH] Fixed Linux install script to accept cookies in addition to meshid. --- agents/meshinstall-linux.sh | 4 ++-- views/player.handlebars | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/agents/meshinstall-linux.sh b/agents/meshinstall-linux.sh index 65837d63..bd43729a 100644 --- a/agents/meshinstall-linux.sh +++ b/agents/meshinstall-linux.sh @@ -55,7 +55,7 @@ CheckInstallAgent() { url=$1 meshid=$2 meshidlen=${#meshid} - if [ $meshidlen -eq 64 ] + if [ $meshidlen -gt 63 ] then machineid=0 machinetype=$( uname -m ) @@ -118,7 +118,7 @@ CheckInstallAgent() { fi else - echo "MeshID is not correct, must be 64 characters long." + echo "MeshID is not correct, must be at least 64 characters long." fi else echo "URI and/or MeshID have not been specified, must be passed in as arguments." diff --git a/views/player.handlebars b/views/player.handlebars index e32d4733..3aa99bc1 100644 --- a/views/player.handlebars +++ b/views/player.handlebars @@ -260,7 +260,7 @@ else if (recFileMetadata.protocol == 101) { // Intel AMT Redirection recFileProtocol = 101; - x += '

Press [space] to play/pause.'; + x += '

' + "Press [space] to play/pause." + ''; QE('PlayButton', true); QE('PauseButton', false); QE('RestartButton', false); @@ -275,7 +275,7 @@ else if (recFileMetadata.protocol == 200) { // Intel AMT Midstream KVM recFileProtocol = 200; - x += '

Press [space] to play/pause.'; + x += '

' + "Press [space] to play/pause." + ''; QE('PlayButton', true); QE('PauseButton', false); QE('RestartButton', false); @@ -367,6 +367,14 @@ } } + // This is a PNG screenshot of the display, load it and render it. + if ((type == 3) && (recFileProtocol == 200)) { + var tile = new Image(); + tile.src = "data:image/png;base64," + btoa(data); + tile.onload = function () { amtDesktop.canvas.drawImage(tile, 0, 0); } + tile.error = function () { } + } + if (playing) { readNextBlock(processBlock); } }