2021-11-20 01:54:42 +00:00
|
|
|
# the config for srs to delivery realtime RTMP stream
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-realtime
|
2021-11-20 01:54:42 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
max_connections 1000;
|
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
|
|
|
http_server {
|
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
|
|
http_remux {
|
|
|
|
enabled on;
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
}
|
|
|
|
|
|
|
|
tcp_nodelay on
|
|
|
|
min_latency on;
|
|
|
|
|
|
|
|
play {
|
|
|
|
gop_cache off;
|
|
|
|
queue_length 10;
|
|
|
|
mw_latency 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
mr off;
|
|
|
|
}
|
|
|
|
}
|