I have a question about the behavior of the Media Source when used with RTMP streams. I want to display a stream from my custom nginx-rtmp server in a scene that will show only when it's live. When it isn't live, I want the Media Source to be hidden so that other content in the scene will be displayed. The objective here is to create the appearance of a seamless stream using OBS Studio, while other streaming content can go live and offline via RTMP through the Media Source. A good example of a stream like this would be SGDQ, in which they cut to a different stream between speedrunners.
After some fiddling with my RMTP server, I managed to get Media Source's "hide source when playback ends" to work when the RTMP stream ends. Unfortunately, it won't "unhide" the source when the RTMP stream starts again. I assume this is because the option is really meant for playing a video once (like an intro). If I disable the "hide source when playback ends" option, I have a different problem: When the RTMP stream ends, the Media Source just shows the last frame it received, covering up any sources behind/below the Media Source.
Anyone have any ideas as to how I might achieve what I'm looking for? Might it be an nginx-rtmp config issue? Is this something Media Source just isn't meant to do? Do I need a plugin? I'm stumped at the moment.
After some fiddling with my RMTP server, I managed to get Media Source's "hide source when playback ends" to work when the RTMP stream ends. Unfortunately, it won't "unhide" the source when the RTMP stream starts again. I assume this is because the option is really meant for playing a video once (like an intro). If I disable the "hide source when playback ends" option, I have a different problem: When the RTMP stream ends, the Media Source just shows the last frame it received, covering up any sources behind/below the Media Source.
Anyone have any ideas as to how I might achieve what I'm looking for? Might it be an nginx-rtmp config issue? Is this something Media Source just isn't meant to do? Do I need a plugin? I'm stumped at the moment.