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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user