Avoid 'No audio stream detected' in prebuffer when speex is the inputAudioCodec (#1203)

Co-authored-by: Marc Vanbrabant <marc@foreach.be>
This commit is contained in:
slyoldfox
2023-11-28 17:51:19 +01:00
committed by GitHub
parent dab5be1103
commit a6bf055b85

View File

@@ -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';
}