Skip to content

Commit

Permalink
Minor fix for stream + record status on start
Browse files Browse the repository at this point in the history
fixes #1, #2, #3, #5
  • Loading branch information
dvangennip committed Dec 27, 2021
1 parent 2feeb82 commit 829688e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ class OBSRemote {
let response = await obs.sendCommand('GetStreamingStatus');

if (response.status == 'ok') {
this.streaming = response.streaming;
this.recording = response.recording;
this.recording_paused = response['recording-paused'];

document.getElementById('status_stream').classList.toggle('good', response.streaming);
document.getElementById('status_stream').classList.toggle('alert', !response.streaming);

Expand Down Expand Up @@ -631,6 +635,8 @@ class OBSRemote {
document.getElementById('status_frames_text').innerHTML =
Math.round(response2.stats['fps']) + ' fps, '+ response2.stats['output-skipped-frames'] + ' skipped';
}

this.update_stream_rec_status();
}

update_status_clock () {
Expand Down

1 comment on commit 829688e

@dvangennip
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #2
fixes #3
fixes #5

Please sign in to comment.