commented playout-delay

This commit is contained in:
Maxim Devaev
2022-07-16 06:17:02 +03:00
parent 9b46c2e597
commit 1ffcd83993
2 changed files with 8 additions and 3 deletions

View File

@@ -103,10 +103,14 @@ static void *_common_thread(void *v_client, bool video) {
packet.buffer = (char *)rtp->datagram; packet.buffer = (char *)rtp->datagram;
packet.length = rtp->used; packet.length = rtp->used;
janus_plugin_rtp_extensions_reset(&packet.extensions); janus_plugin_rtp_extensions_reset(&packet.extensions);
if (video) { // FIXME: See rtpv.c
// Это очень эффективный способ уменьшить задержку, но WebRTC стек в хроме и фоксе
// слишком корявый, чтобы обработать это, тз-за чего на кейфреймах начинаются заикания.
// - https://github.com/Glimesh/janus-ftl-plugin/issues/101
/*if (video) {
packet.extensions.min_delay = 0; packet.extensions.min_delay = 0;
packet.extensions.max_delay = 0; packet.extensions.max_delay = 0;
} }*/
client->gw->relay_rtp(client->session, &packet); client->gw->relay_rtp(client->session, &packet);
} }
rtp_destroy(rtp); rtp_destroy(rtp);

View File

@@ -81,7 +81,8 @@ char *rtpv_make_sdp(rtpv_s *rtpv) {
"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
"a=ssrc:%" PRIu32 " cname:ustreamer" RN "a=ssrc:%" PRIu32 " cname:ustreamer" RN
"a=extmap:1 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay" RN // XXX: See client.c
// "a=extmap:1 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay" RN
"a=sendonly" RN, "a=sendonly" RN,
PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD,
PAYLOAD, sps, PAYLOAD, sps,