mirror of
https://github.com/koush/scrypted.git
synced 2026-05-24 13:50:26 +01:00
common: fix double rtp packet delivery in some cases
This commit is contained in:
@@ -100,7 +100,6 @@ async function createTrackForwarders(console: Console, killDeferred: Deferred<vo
|
||||
if (track.ssrc)
|
||||
outputArguments.push('-ssrc', track.ssrc.toString());
|
||||
|
||||
attachTrackDgram(track, server);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user