Skip to content

Commit

Permalink
common: rtp forwarder ffmpeg path
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 15, 2024
1 parent 2445ea9 commit 1ada7bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/webrtc/src/rtp-forwarders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function isCodecCopy(desiredCodec: RtpCodecCopy, checkCodec: string) {
export type RtpForwarderProcess = Awaited<ReturnType<typeof startRtpForwarderProcess>>;

export async function startRtpForwarderProcess(console: Console, ffmpegInput: FFmpegInput, rtpTracks: RtpTracks, options?: {
ffmpegPath?: string,
rtspClientForceTcp?: boolean,
rtspMode?: 'udp' | 'tcp' | 'pull',
onRtspClient?: (rtspClient: RtspClient, optionsResponse: RtspServerResponse) => Promise<boolean>,
Expand Down Expand Up @@ -150,7 +151,7 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
rtpTracks = Object.assign({}, rtpTracks);
const videoCodec = video?.codecCopy;
const audioCodec = audio?.codecCopy;
const ffmpegPath = await mediaManager.getFFmpegPath();
const ffmpegPath = options?.ffmpegPath || await mediaManager.getFFmpegPath();

const isRtsp = ffmpegInput.container?.startsWith('rtsp');

Expand Down

0 comments on commit 1ada7bb

Please sign in to comment.