Skip to content

Commit

Permalink
explicitly enable nack, for firefox (ossrs#2373)
Browse files Browse the repository at this point in the history
  • Loading branch information
duiniuluantanqin authored Jul 24, 2021
1 parent 1c80b52 commit fb73d42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion trunk/src/app/srs_app_rtc_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3114,6 +3114,10 @@ srs_error_t SrsRtcConnection::negotiate_play_capability(SrsRtcUserConfig* ruc, s
// We should clear the extmaps of source(publisher).
// @see https://github.com/ossrs/srs/issues/2370
track->extmaps_.clear();

// We should clear the rtcp_fbs of source(publisher).
// @see https://github.com/ossrs/srs/issues/2371
track->media_->rtcp_fbs_.clear();

// Use remote/source/offer PayloadType.
track->media_->pt_of_publisher_ = track->media_->pt_;
Expand All @@ -3131,7 +3135,7 @@ srs_error_t SrsRtcConnection::negotiate_play_capability(SrsRtcUserConfig* ruc, s
uint32_t publish_ssrc = track->ssrc_;

vector<string> rtcp_fb;
track->media_->rtcp_fbs_.swap(rtcp_fb);
remote_payload.rtcp_fb_.swap(rtcp_fb);
for (int j = 0; j < (int)rtcp_fb.size(); j++) {
if (nack_enabled) {
if (rtcp_fb.at(j) == "nack" || rtcp_fb.at(j) == "nack pli") {
Expand Down

0 comments on commit fb73d42

Please sign in to comment.