1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00
srs/trunk/conf/rtc.conf

43 lines
903 B
Text
Raw Normal View History

# 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;
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;
}
rtc_server {
2021-05-01 08:41:42 +00:00
enabled on;
2021-12-12 07:53:08 +00:00
listen 8000; # UDP port
2021-10-11 08:36:05 +00:00
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
2021-05-01 08:41:42 +00:00
candidate $CANDIDATE;
2020-02-23 15:19:40 +00:00
}
2020-03-14 09:15:46 +00:00
vhost __defaultVhost__ {
rtc {
enabled on;
2021-10-11 08:36:05 +00:00
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
rtmp_to_rtc off;
2021-10-11 08:36:05 +00:00
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
rtc_to_rtmp off;
}
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