Skip to content

Commit

Permalink
common: fix double rtp packet delivery in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 20, 2024
1 parent 7b19204 commit d648fe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/webrtc/src/rtp-forwarders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ async function createTrackForwarders(console: Console, killDeferred: Deferred<vo
if (track.ssrc)
outputArguments.push('-ssrc', track.ssrc.toString());

attachTrackDgram(track, server);
}
}

Expand Down Expand Up @@ -405,6 +404,9 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
];

if (useRtp) {
attachTrackDgram(video, video.bind.server);
attachTrackDgram(audio, audio.bind.server);

args.push(
'-sdp_file', 'pipe:4',
);
Expand Down

0 comments on commit d648fe5

Please sign in to comment.