From 018f33952f9bda3315240b4c40131a2136172c06 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Thu, 20 Apr 2017 01:23:50 +1200 Subject: [PATCH] Updated Examples (markdown) --- Examples.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/Examples.md b/Examples.md index 72ad10c..a57ef8a 100644 --- a/Examples.md +++ b/Examples.md @@ -20,15 +20,35 @@ } } +### Forward live broadcast service + + rtmp { + server{ + listen 1935; + chunk_size 4096; + + application live { + live on; + record off; + push rtmp://live.twitch.tv/app/[streamkeyfromtwitch]; + push rtmp://a.rtmp.youtube.com/live2/[streamkeyfromyoutube]; + } + } + } + ### Re-translate remote stream rtmp { - server { - listen 1935; - application tv { - live on; - pull rtmp://cdn.example.com:443/programs/main pageUrl=http://www.example.com/index.html name=maintv; - } + server{ + listen 1935; + chunk_size 4096; + + application live { + live on; + record off; + push rtmp://live.twitch.tv/app/[streamkeyfromtwitch]; + push rtmp://a.rtmp.youtube.com/live2/[streamkeyfromyoutube]; + } } }