add stereo to opus codec.

This commit is contained in:
Miroslav Šedivý 2023-01-12 20:34:09 +01:00
parent 3c3042d691
commit b793e5b377

View File

@ -131,7 +131,7 @@ func Opus() RTPCodec {
MimeType: webrtc.MimeTypeOpus, MimeType: webrtc.MimeTypeOpus,
ClockRate: 48000, ClockRate: 48000,
Channels: 2, Channels: 2,
SDPFmtpLine: "useinbandfec=1", SDPFmtpLine: "useinbandfec=1;stereo=1",
RTCPFeedback: []webrtc.RTCPFeedback{}, RTCPFeedback: []webrtc.RTCPFeedback{},
}, },
// https://gstreamer.freedesktop.org/documentation/opus/opusenc.html // https://gstreamer.freedesktop.org/documentation/opus/opusenc.html