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 = "";