1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-28 14:12:48 +02:00

Split /app to /stream and /play

This commit is contained in:
Alexandre Iooss
2020-09-15 15:48:03 +02:00
parent f916adc2b4
commit 5f4805bd5c
7 changed files with 55 additions and 21 deletions

View File

@ -18,19 +18,36 @@ stream {
}
}
# Authenticate then stream RTMP
# This RTMP server will be used when clients play directly RTMPS.
# It also push RTMP stream to OvenMediaEngine to generate WebRTC stream.
rtmp {
server {
listen 127.0.0.1:1925;
chunk_size 4096;
application app {
# Application to authenticate incoming stream
application stream {
# Publish only
allow publish all;
deny play all;
live on;
record off;
push rtmp://127.0.0.1:1915;
# if publish succeed, it will redirect to /play/
on_publish http://127.0.0.1:8080/rtmp/auth;
}
# Application to play stream
application play {
# Playback only
allow publish 127.0.0.1;
deny publish all;
allow play all;
live on;
record off;
# Send to OvenMediaEngine
push rtmp://127.0.0.1:1915;
}
}
}