Skip to content

Commit

Permalink
Avoid 'No audio stream detected' in prebuffer when speex is the input…
Browse files Browse the repository at this point in the history
…AudioCodec (#1203)

Co-authored-by: Marc Vanbrabant <[email protected]>
  • Loading branch information
slyoldfox and Marc Vanbrabant authored Nov 28, 2023
1 parent dab5be1 commit a6bf055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/sdp-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ export function parseRtpMap(mlineType: string, rtpmap: string) {
codec = 'pcm_s16be';
ffmpegEncoder = 'pcm_s16be';
}
else if (rtpmap?.includes('speex')) {
codec = 'speex';
ffmpegEncoder = 'libspeex';
}
else if (rtpmap?.includes('h264')) {
codec = 'h264';
}
Expand Down

0 comments on commit a6bf055

Please sign in to comment.