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:
parent
adb6f723c7
commit
4df6fa540f
12 changed files with 1289 additions and 845 deletions
|
@ -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为tcp,off为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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue