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

Unable to "SetStreamServiceSettings" after stopping the stream #343

Open
NithishB06 opened this issue Oct 9, 2023 · 0 comments
Open

Unable to "SetStreamServiceSettings" after stopping the stream #343

NithishB06 opened this issue Oct 9, 2023 · 0 comments

Comments

@NithishB06
Copy link

I am trying to check for stream status first using GetStreamStatus. and based on that stop the stream if it is active.

Immediately I am doing this:
await obs.call("SetStreamServiceSettings", streamSettings);

which is causing this error:

OBSWebSocketError: You cannot change stream service settings while streaming.

The issue is that when I stop the stream, it takes 2-3 seconds for OBS to process it and stop the stream but meanwhile I am trying to set stream service settings while the state has not changed, I have tried a lot of things and have not found any success so far.

I have even tried using events like .on and others but with no progress.

Are there any viable approaches to deal with issues like these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant