Niek / obs-web

OBS-web - the easiest way to control OBS remotely
http://obs-web.niek.tv
GNU General Public License v3.0
1.16k stars 135 forks source link

The program preview error #219

Open walter8729 opened 1 year ago

walter8729 commented 1 year ago

Sorry my english is bad. The issue is that the program preview should not be change or update when I toggle on/off any scene sources, but in the the web program preview is changed, but in obs program program preview is maintain last changes after transition.

its working fine when i change to other scenes to preview other scenes or scenes items, but when i change or update scene items of the same scene "onAir" is when the error happens. The program preview in studio mode, i think should be mantain inmutable untill press transition button OBS RE

Niek commented 1 year ago

I don't understand the issue completely. So you are in studio mode, toggle a source off, and what goes wrong?

Niek commented 1 year ago

Ah, I think I see what you mean: if both the preview and program scene are the same scene, and you toggle a source off, the preview in OBS-web shows the correct screenshot but the program scene is wrong. I need to check if this is an issue with OBS-web or with obs-websocket itself.

Niek commented 1 year ago

Looking at https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#getsourcescreenshot, I don't think there's a way to distinguish screenshots from a program vs preview scene. Can you open a feature request upstream? Once that is implemented, we can add support for it in OBS-web.

walter8729 commented 1 year ago

You're right, I was reading the obs-websocket documentation, and you can only preview inputs, that is, a scene or an item from a scene. It would be necessary to implement functions like getProgramScreenShot(), or getPreviewScreenShot(), which return the previews of these outputs.