Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix obs-websocket v5, add replay button #104

Merged
merged 8 commits into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Linting
  • Loading branch information
Niek committed Sep 2, 2022
commit 30bac25978dbbf83a7be237578e65d68bf47f6e0
7 changes: 3 additions & 4 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@
const data = await sendCommand('ToggleReplayBuffer')
console.debug('ToggleReplayBuffer', data.outputActive)
if (data.outputActive === undefined) {
replayError = "Replay buffer is not enabled."
setTimeout(function(){replayError=''}, 5000)
}
else isReplaying = data.outputActive
replayError = 'Replay buffer is not enabled.'
setTimeout(function () { replayError = '' }, 5000)
} else isReplaying = data.outputActive
}

async function switchSceneView () {
Expand Down
2 changes: 1 addition & 1 deletion src/obs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const obs = new OBSWebSocket()

export async function sendCommand (command, params) {
try {
// if (command.indexOf('Set') === 0)
// if (command.indexOf('Set') === 0)
// console.log('Sending command:', command, 'with params:', params)
return await obs.call(command, params || {})
} catch (e) {
Expand Down