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

For #1638, #307, add comments for vhost rtc config

This commit is contained in:
winlin 2020-03-21 22:52:59 +08:00
parent 7315b1a26d
commit 0cd67a997e
2 changed files with 14 additions and 0 deletions

View file

@ -325,6 +325,19 @@ rtc_server {
candidate *; candidate *;
} }
vhost rtc.vhost.srs.com {
rtc {
# Whether enable WebRTC server.
# default: off
enabled on;
# The strategy for bframe.
# keep Keep bframe, which may make browser with playing problems.
# discard Discard bframe, maybe cause browser with little problems.
# default: keep
bframe discard;
}
}
############################################################################################# #############################################################################################
# RTMP/HTTP VHOST sections # RTMP/HTTP VHOST sections
############################################################################################# #############################################################################################

View file

@ -887,6 +887,7 @@ srs_error_t SrsGoApiSdp::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessag
request.stream = stream_name; request.stream = stream_name;
SrsSdp local_sdp; SrsSdp local_sdp;
// TODO: FIXME: Maybe need a better name? // TODO: FIXME: Maybe need a better name?
// TODO: FIXME: When server enabled, but vhost disabled, should report error.
SrsRtcSession* rtc_session = rtc_server->create_rtc_session(request, remote_sdp, local_sdp); SrsRtcSession* rtc_session = rtc_server->create_rtc_session(request, remote_sdp, local_sdp);
string local_sdp_str = ""; string local_sdp_str = "";