1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #2200, Enable RTC and FLV for GB28181

This commit is contained in:
xialixin@kanzhun.com 2021-02-18 21:51:49 +08:00 committed by winlin
parent 548fcd627b
commit fdaee20b81
12 changed files with 1289 additions and 845 deletions

View file

@ -8,7 +8,12 @@ srs_log_tank console;
http_api {
enabled on;
listen 1985;
}
}
http_server {
enabled on;
listen 8080;
}
stats {
network 0;
@ -29,7 +34,7 @@ stream_caster {
listen 9000;
# 多路复用端口类型on为tcpoff为udp
# 默认off
tcp_enable on;
tcp_enable off;
# rtp接收监听端口范围最小值
rtp_port_min 58200;
@ -111,5 +116,27 @@ stream_caster {
query_catalog_interval 60;
}
}
vhost __defaultVhost__ {
rtc_server {
enabled on;
# Listen at udp://8000
listen 8000;
#
# The $CANDIDATE means fetch from env, if not configed, use * as default.
#
# The * means retrieving server IP automatically, from all network interfaces,
# @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
rtc {
enabled on;
bframe discard;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
}