Scene within scene not functioning as I intended

Warlord1981NL

New Member
Hello everyone,

To describe the problem I am encountering I have 2 scenes: Main scene, this is the scene that I stream from and Overlay scene, this is the scene that contains the browser source for the OBS Websocket with some decorations around it. I have made the Overlay scene with the browser source so I can import the whole thing into other scenes and have a nice, consistent, ready-to-go package that I can just plop into a new scene and have it be visually consistent.

When I run the browser source with the Websocket page directly on my main scene everything works fine (even when I use the existing one from the Overlay scene). But when I import the Overlay scene as a source into my main scene then I will see the decorations I've made but whatever I put on the websocket page through my bot is not longer displayed or heard: MP3s and MP4s do not play, images aren't shown regardless of file type (I mostly work with PNGs but theres a few GIFs and JPGs as well), on rare occassions when the images do display then the animation scripts I use do not display, etc etc etc. I do not think it has to do with file sizes because I have been very careful with that, making sure nothing exceeds 1 MB.

Literally nothing sent to the websocket works when I import the overlay scene as a whole onto the Main scene. But when I just use the browser source, even when I use the existing browser source as found on the Overlay scene, everything works just fine.

I do not understand what is wrong here. Am I missing something? At first I thought it was the videos but then I found out it nothing displays in any way once I put the Overlay scene on the Main scene as a source. I feel this should work but it just completely stops functioning or functions very poorly once I use scene within scene.

I have considered making my bot create the nice ambiance and have it send everything to the websocket which I am sure would work but that would also be a major pain in the ass as I would have recreate it for every single command and that was not the point of the exercise (less work rather than more is what I am going for) so I am really hoping you guys can help me out and get this to work. I am out of my depth here and I would really appreciate your thoughts and tips.

Kind regards,

War
 

Warlord1981NL

New Member
Apologies, I just realized a mistake in my phrasing of what is going on. I am NOT sending what to display to the OBS Websocket (that is what I use to make the Overlay source scene visible and invisible which works swimmingly) but rather to a locally hosted webpage. My apologies. I am sure many of you will have picked up on that from the explanation but the browser source points at http://localhost:8111/overlay/ for what to display, through the websocket I make the source scene visible and invisible.
 

Suslik V

Active Member
As workaround I can suggest to assign hotkey named "Refresh cache for current page" to Browser source of your interest. Of course, it may work only in case the automation program you are using is able to send hotkey events to OBS.

Also, did you tried to add the source into a Group and later add this already existing Group to other scene instead of using the Scene source?
 

Warlord1981NL

New Member
Thank you for your response, @Suslik V !

I have tried that but it basically yielded the same effect. I have found the solution tho and have programmed my bot to build up the entire scene and now it works fine. I think OBS simply wasn't able to handle what I asked it to do (which frankly wasn't all that much, just an animated background and some animated foreground videos, the total filesize amounted to about 17 MB as they are 5 and 10 second clips in WebM format) and it threw everything awry. But now that I am building the entire scene from my streambot and then just use a browser source in OBS to display it and everything now works smooth as butter. Lesson learned: Don't ask OBS to do things.

Kind regards,

Me
 
Top