playout delay

This commit is contained in:
Maxim Devaev 2022-07-15 06:21:28 +03:00
parent ad79bd0957
commit ad1b63890a
2 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,10 @@ static void *_common_thread(void *v_client, bool video) {
packet.buffer = (char *)rtp->datagram;
packet.length = rtp->used;
janus_plugin_rtp_extensions_reset(&packet.extensions);
if (video) {
packet.extensions.min_delay = 0;
packet.extensions.max_delay = 0;
}
client->gw->relay_rtp(client->session, &packet);
}
rtp_destroy(rtp);

View File

@ -81,6 +81,7 @@ char *rtpv_make_sdp(rtpv_s *rtpv) {
"a=rtcp-fb:%u nack pli" RN
"a=rtcp-fb:%u goog-remb" RN
"a=ssrc:%" PRIu32 " cname:ustreamer" RN
"a=extmap:1 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay" RN
"a=sendonly" RN,
PAYLOAD, PAYLOAD, PAYLOAD, PAYLOAD,
PAYLOAD, sps,