mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine source, pass-by RTC publisher for player
This commit is contained in:
parent
20b4984af4
commit
1688d53f7d
3 changed files with 12 additions and 13 deletions
|
@ -754,7 +754,10 @@ srs_error_t SrsRtcSenderThread::cycle()
|
|||
|
||||
// For RTC, notify the source to fetch keyframe for this client.
|
||||
// TODO: FIXME: Should triggle by PLI from client.
|
||||
source->request_keyframe();
|
||||
SrsRtcPublisher* publisher = source->rtc_publisher();
|
||||
if (publisher) {
|
||||
publisher->request_keyframe();
|
||||
}
|
||||
|
||||
SrsMessageArray msgs(SRS_PERF_MW_MSGS);
|
||||
SrsRtcPackets pkts(SRS_PERF_RTC_RTP_PACKETS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue