Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

OBS streaming with condition

$
0
0
Right now, I have the following script to dual stream on both Hitbox and Twitch (You don't need to look at this.):
http://www.reddit.com/r/hitbox/comments/1xqqnz/tutorialhow_to_stream_to_twitch_and_hitbox_at_the/

The script works and is perfect.

What I want is to include a condition to also stream on a 3rd website but only when I want to. The idea is that I would start streaming only on Twitch and Hitbox, and in the middle, I could also make it push to Youtube live without stopping the other two. At anytime, I could stop streaming to Youtube while continuing to stream on the other two.


The only way I can think of seems like a dirty workaround and doesn't even work:

I tried do it with an if statement and detect if a certain file exists. That way, with outside control, I could create or remove a file to make it push to Youtube or not. It seems that I can't put an if statement there though.

Here is what it looked like: http://pastebin.com/dFq5Bk48

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>