added more status messages

This commit is contained in:
devl0rd 2020-04-23 15:40:30 -06:00
parent 7f57dfd683
commit 205a17db55
2 changed files with 5 additions and 1 deletions

View file

@ -102,7 +102,7 @@
</div> </div>
</div> </div>
<div id="statusbar" class="rainbowBackgroundColor2"> <div id="statusbar" class="rainbowBackgroundColor2">
<span id="statusbartext">Ready!</span> <span id="statusbartext">Streamer stopped.</span>
</div> </div>
<div id="loadingCover"> <div id="loadingCover">
<div class="centerVert"> <div class="centerVert">

View file

@ -6,6 +6,10 @@ ipcRenderer.on('log', function (event, genHtml) {
var fps = genHtml.split("fps= ")[1].split(" ")[0]; var fps = genHtml.split("fps= ")[1].split(" ")[0];
var bitrate = genHtml.split("bitrate=")[1].split(" ")[0]; var bitrate = genHtml.split("bitrate=")[1].split(" ")[0];
$("#statusbartext").html("Framrate: " + fps + " Bitrate: " + bitrate); $("#statusbartext").html("Framrate: " + fps + " Bitrate: " + bitrate);
} else if (genHtml.includes("Connection timed out") || genHtml.includes("Waiting for connection")) {
$("#statusbartext").html("Waiting for connection...");
} else if (genHtml.includes("streamerProcess process exited")) {
$("#statusbartext").html("Streamer stopped.");
} }
clearTimeout(logTimeout); clearTimeout(logTimeout);
logTimeout = setTimeout(function () { logTimeout = setTimeout(function () {