mirror of
https://github.com/DevL0rd/SkyNX
synced 2024-11-26 21:10:18 +00:00
added more status messages
This commit is contained in:
parent
7f57dfd683
commit
205a17db55
2 changed files with 5 additions and 1 deletions
|
@ -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">
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue