mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: fix rtc publisher pli cid (#3318)
* RTC: fix rtc publisher pli cid * RTC: log bridge request keyframe * Update release v6.0.19 v5.0.138 Co-authored-by: Winlin <winlin@vip.126.com> Co-authored-by: ChenGH <chengh_math@126.com>
This commit is contained in:
parent
81566868bf
commit
7922057467
7 changed files with 14 additions and 10 deletions
|
@ -912,7 +912,7 @@ srs_error_t SrsRtcPlayStream::do_request_keyframe(uint32_t ssrc, SrsContextId ci
|
|||
return err;
|
||||
}
|
||||
|
||||
publisher->request_keyframe(ssrc);
|
||||
publisher->request_keyframe(ssrc, cid);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
@ -1611,15 +1611,14 @@ srs_error_t SrsRtcPublishStream::on_rtcp_xr(SrsRtcpXr* rtcp)
|
|||
return err;
|
||||
}
|
||||
|
||||
void SrsRtcPublishStream::request_keyframe(uint32_t ssrc)
|
||||
void SrsRtcPublishStream::request_keyframe(uint32_t ssrc, SrsContextId cid)
|
||||
{
|
||||
SrsContextId sub_cid = _srs_context->get_id();
|
||||
pli_worker_->request_keyframe(ssrc, sub_cid);
|
||||
pli_worker_->request_keyframe(ssrc, cid);
|
||||
|
||||
uint32_t nn = 0;
|
||||
if (pli_epp->can_print(ssrc, &nn)) {
|
||||
// The player(subscriber) cid, which requires PLI.
|
||||
srs_trace("RTC: Need PLI ssrc=%u, play=[%s], publish=[%s], count=%u/%u", ssrc, sub_cid.c_str(),
|
||||
srs_trace("RTC: Need PLI ssrc=%u, play=[%s], publish=[%s], count=%u/%u", ssrc, cid.c_str(),
|
||||
cid_.c_str(), nn, pli_epp->nn_count);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue