2021-09-25 02:09:25 +00:00
|
|
|
# WebRTC streaming config for SRS.
|
|
|
|
# @see full.conf for detail config.
|
2020-02-23 15:19:40 +00:00
|
|
|
|
|
|
|
listen 1935;
|
2020-05-17 12:36:53 +00:00
|
|
|
max_connections 1000;
|
2021-02-18 03:39:25 +00:00
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
2020-03-14 09:15:46 +00:00
|
|
|
|
2020-02-23 15:19:40 +00:00
|
|
|
http_server {
|
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
2020-03-14 09:15:46 +00:00
|
|
|
|
|
|
|
http_api {
|
2020-02-23 15:19:40 +00:00
|
|
|
enabled on;
|
2020-03-14 09:15:46 +00:00
|
|
|
listen 1985;
|
2020-02-23 15:19:40 +00:00
|
|
|
}
|
|
|
|
stats {
|
|
|
|
network 0;
|
|
|
|
}
|
2020-03-21 13:26:30 +00:00
|
|
|
rtc_server {
|
2021-05-01 14:15:57 +00:00
|
|
|
enabled on;
|
2021-12-13 01:24:16 +00:00
|
|
|
listen 8000; # UDP port
|
2021-10-12 00:36:24 +00:00
|
|
|
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
2021-05-01 14:15:57 +00:00
|
|
|
candidate $CANDIDATE;
|
2020-02-23 15:19:40 +00:00
|
|
|
}
|
|
|
|
|
2020-03-14 09:15:46 +00:00
|
|
|
vhost __defaultVhost__ {
|
2020-03-21 13:26:30 +00:00
|
|
|
rtc {
|
|
|
|
enabled on;
|
2021-10-12 00:36:24 +00:00
|
|
|
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
|
|
|
rtmp_to_rtc off;
|
|
|
|
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
|
|
|
rtc_to_rtmp off;
|
2020-03-21 13:26:30 +00:00
|
|
|
}
|
2021-03-03 10:14:06 +00:00
|
|
|
http_remux {
|
|
|
|
enabled on;
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
}
|
2020-03-14 09:15:46 +00:00
|
|
|
}
|
2020-02-23 15:19:40 +00:00
|
|
|
|