Question / Help Media Source RTMP Play/Stop Question

Coestar

New Member
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.
 

Suslik V

Active Member
I only know that is better to use couple of scenes and switch between them manually. The transition is adjustable and transition hotkey can be assigned to the each of the scenes.
 

Coestar

New Member
I only know that is better to use couple of scenes and switch between them manually. The transition is adjustable and transition hotkey can be assigned to the each of the scenes.

I appreciate the help, but I'm specifically seeking an automatic solution.
 

Suslik V

Active Member
Not misunderstanding. Simply, there is no api yet to use external of OBS Studio functions (correct me if I'm wrong), only plugins integrated to the Studio by user or written by user itself. Thus the simplest way to access the transitions is the hotkeys. I think that transitions with the external control is your choice.
 
Top