mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 15:26:12 +00:00
janus: handle FIR
This commit is contained in:
@@ -722,8 +722,10 @@ static void _plugin_incoming_rtcp(janus_plugin_session *session, janus_plugin_rt
|
|||||||
if (session == NULL || packet == NULL || !packet->video) {
|
if (session == NULL || packet == NULL || !packet->video) {
|
||||||
return; // Accept only valid video
|
return; // Accept only valid video
|
||||||
}
|
}
|
||||||
if (janus_rtcp_has_pli(packet->buffer, packet->length)) {
|
if (
|
||||||
// US_JLOG_INFO("main", "Got video PLI");
|
janus_rtcp_has_pli(packet->buffer, packet->length)
|
||||||
|
|| janus_rtcp_has_fir(packet->buffer, packet->length)
|
||||||
|
) {
|
||||||
atomic_store(&_g_key_required, true);
|
atomic_store(&_g_key_required, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ char *us_sdp_create(us_rtpv_s *rtpv, us_rtpa_s *rtpa, bool mic) {
|
|||||||
"c=IN IP4 0.0.0.0" RN
|
"c=IN IP4 0.0.0.0" RN
|
||||||
"a=rtpmap:%u H264/90000" RN
|
"a=rtpmap:%u H264/90000" RN
|
||||||
"a=fmtp:%u profile-level-id=42E01F;packetization-mode=1" RN
|
"a=fmtp:%u profile-level-id=42E01F;packetization-mode=1" RN
|
||||||
|
"a=rtcp-fb:%u ccm fir" RN
|
||||||
"a=rtcp-fb:%u nack" RN
|
"a=rtcp-fb:%u nack" RN
|
||||||
"a=rtcp-fb:%u nack pli" RN
|
"a=rtcp-fb:%u nack pli" RN
|
||||||
"a=rtcp-fb:%u goog-remb" RN
|
"a=rtcp-fb:%u goog-remb" RN
|
||||||
@@ -56,7 +57,7 @@ char *us_sdp_create(us_rtpv_s *rtpv, us_rtpa_s *rtpa, bool mic) {
|
|||||||
"a=extmap:2/sendonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay" RN
|
"a=extmap:2/sendonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay" RN
|
||||||
"a=extmap:3/sendonly http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time" RN
|
"a=extmap:3/sendonly http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time" RN
|
||||||
"a=sendonly" RN,
|
"a=sendonly" RN,
|
||||||
pl, pl, pl, pl, pl, pl,
|
pl, pl, pl, pl, pl, pl, pl,
|
||||||
rtpv->rtp->ssrc);
|
rtpv->rtp->ssrc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user