Skip to content

Commit

Permalink
allow to set audio video jitter buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Dec 16, 2024
1 parent 50c36ce commit ed3c844
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/playout-delay-hint.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ window.getPlayoutDelayHint = () => {
}

const handleTransceiverForJitterBufferTarget = (id, transceiver, event) => {
const jitterBufferTarget = window.PARAMS?.jitterBufferTarget
if (jitterBufferTarget === undefined) {
return
let jitterBufferTarget = window.PARAMS?.jitterBufferTarget
if (jitterBufferTarget && isNaN(jitterBufferTarget)) {
jitterBufferTarget = jitterBufferTarget[transceiver.receiver.track?.kind]
}
if (isNaN(jitterBufferTarget)) return
if (transceiver.receiver && transceiver.receiver.track?.label !== 'probator') {
log(
`RTCPeerConnection-${id} ${event}: set jitterBufferTarget ${transceiver.receiver.track?.kind} ${transceiver.receiver.jitterBufferTarget} -> ${jitterBufferTarget}`,
Expand Down

0 comments on commit ed3c844

Please sign in to comment.