Closed artemtar closed 3 years ago
Forget commit message, wrong issue id, I was talking about #53... :confused:
I just tested using master on OSB 26.0.2 and obs-websocket 4.7.0-1, my audio source was muting and unmuting without problem...
Just had to remove the try:
but I think your code snipped was not full...
Could you check you are using the last versions of obs / websocket / this lib? And could you paste the output of the script, including the success message? But if you are receiving 'ok' from the server and nothing changes in OBS, it may be a bug in the obs-websocker server...
Are you using the lase version of OSB ?
My bad, somehow I assumed that toggle mute will display or not display the source. Does this toggling display functionality exist?
You can try SetSceneItemRender
and toggle the render
parameter, but you will have to keep the current status on your side...
https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemrender
Oh, thanks that works!
I have checked the same code on switching scenes and it has no issues, muting any source does not seem to work. The snippet connects to obs, print success msg, and does not toggle "myname" in obs. Example: