Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add dinamic relay #10

Open
rrfaria opened this issue Aug 25, 2019 · 0 comments
Open

How to add dinamic relay #10

rrfaria opened this issue Aug 25, 2019 · 0 comments

Comments

@rrfaria
Copy link

rrfaria commented Aug 25, 2019

I tested it and it is amazing works pretty well

But There is a question:

how can users relay their own stream for other server live facebook or youtube individually without restart the server.

I noticed if I put relay on settings it will set same relay to all user and when I change relay it restart the server. Is there a way to set individual relay to each users without restart server and stop other streams?

SAMPLE CODE:

if I set this way all user will relay for the same but I wanna have one for each.

const config = {
	server: {
		secret: '<SECRET_KEY>',
		port: 3333
	},

	rtmp_server: {
		rtmp: {
			port: 1935,
			chunk_size: 60000,
			gop_cache: true,
			ping: 60,
			ping_timeout: 30
		},
		http: {
			port: 8888,
			mediaroot: './server/media',
			allow_origin: '*'
		},
		relay: {
			ffmpeg: '/usr/bin/ffmpeg',
			tasks: [
				{
					app: 'live',
					mode: 'push',
					edge: 'rtmp://a.rtmp.youtube.com/live2/<YOUTUBE_KEY>',
				},
				{
					app: 'live',
					mode: 'push',
					edge: 'rtmps://rtmp-pc.facebook.com:443/rtmp/<FACEBOOK_KEY>',
				}
			]
		},
		trans: {
			ffmpeg: '/usr/bin/ffmpeg',
			tasks: [{
				app: 'live',
				hls: true,
				hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
				dash: true,
				dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
			}]
		}
	}
};

module.exports = config;
JiboStore pushed a commit to JiboStore/node-stream_220128 that referenced this issue Mar 11, 2022
…rn/part_1_2/http-proxy-1.18.1

Bump http-proxy from 1.18.0 to 1.18.1 in /part_1_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant