From 0cd67a997ec5812050758fd01d3eee90fbc69f9d Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 21 Mar 2020 22:52:59 +0800 Subject: [PATCH] For #1638, #307, add comments for vhost rtc config --- trunk/conf/full.conf | 13 +++++++++++++ trunk/src/app/srs_app_http_api.cpp | 1 + 2 files changed, 14 insertions(+) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index fac379948..46b9229fc 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -325,6 +325,19 @@ rtc_server { 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 ############################################################################################# diff --git a/trunk/src/app/srs_app_http_api.cpp b/trunk/src/app/srs_app_http_api.cpp index 46c08ab79..2ea98230a 100644 --- a/trunk/src/app/srs_app_http_api.cpp +++ b/trunk/src/app/srs_app_http_api.cpp @@ -887,6 +887,7 @@ srs_error_t SrsGoApiSdp::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessag request.stream = stream_name; SrsSdp local_sdp; // 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); string local_sdp_str = "";