mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine config for RTC
This commit is contained in:
parent
0b99f06eff
commit
fe9e43b6d4
9 changed files with 27 additions and 4 deletions
|
@ -25,7 +25,7 @@ rtc_server {
|
|||
# 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/wiki/v4_CN_RTCWiki#config-candidate
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,13 +25,17 @@ rtc_server {
|
|||
# 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/wiki/v4_CN_RTCWiki#config-candidate
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac transcode;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
|
|
|
@ -17,6 +17,7 @@ http_server {
|
|||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
|
@ -29,7 +30,9 @@ vhost __defaultVhost__ {
|
|||
}
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac discard;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp off;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -388,7 +388,7 @@ rtc_server {
|
|||
# And by multiple ENV variables:
|
||||
# $CANDIDATE $EIP # TODO: Implements it.
|
||||
# @remark For Firefox, the candidate MUST be IP, MUST NOT be DNS name.
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_RTCWiki#config-candidate
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
# default: *
|
||||
candidate *;
|
||||
# The IP family filter for auto discover candidate, it can be:
|
||||
|
|
|
@ -22,13 +22,16 @@ stats {
|
|||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac discard;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp off;
|
||||
}
|
||||
http_remux {
|
||||
|
|
|
@ -20,13 +20,16 @@ stats {
|
|||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac transcode;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp on;
|
||||
}
|
||||
http_remux {
|
||||
|
|
|
@ -20,13 +20,16 @@ stats {
|
|||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac transcode;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp on;
|
||||
}
|
||||
http_remux {
|
||||
|
|
|
@ -18,6 +18,7 @@ http_server {
|
|||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
|
@ -30,7 +31,9 @@ vhost __defaultVhost__ {
|
|||
}
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac discard;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp off;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ rtc_server {
|
|||
# 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/wiki/v4_CN_RTCWiki#config-candidate
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,10 @@ rtc_server {
|
|||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
aac discard;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp off;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue