mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
explicitly enable nack, for firefox (#2373)
This commit is contained in:
parent
1c80b529f8
commit
fb73d42c38
1 changed files with 5 additions and 1 deletions
|
@ -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_;
|
||||
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue