I use ‘redmi6’ to produce video and audio, The video is normal, but the audio is wrong(unsupportedError).
When I manually add ‘channels’: 2,’ to the rtpParameters, it can work!
But i cannot consume audio when it use opus;
rtpParameters(error):
{“codecs”:[{“clockRate”:48000,“mimeType”:“audio/opus”,“parameters”:{“minptime”:10,“sprop-stereo”:1,“usedtx”:1,“useinbandfec”:1},“payloadType”:111,“rtcpFeedback”:[{“parameter”:"",“type”:“transport-cc”}]}],“encodings”:[{“dtx”:false,“ssrc”:434035550}],“headerExtensions”:[{“encrypt”:false,“id”:4,“parameters”:{},“uri”:“urn:ietf:params:rtp-hdrext:sdes:mid”},{“encrypt”:false,“id”:2,“parameters”:{},“uri”:“http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"},{“encrypt”:false,“id”:3,“parameters”:{},“uri”:“http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01”},{“encrypt”:false,“id”:1,“parameters”:{},“uri”:“urn:ietf:params:rtp-hdrext:ssrc-audio-level”}],“mid”:“0”,“rtcp”:{“cname”:"","reducedSize”:true}}
rtpParameters(work):
{“codecs”:[{“channels”:2,“clockRate”:48000,“mimeType”:“audio/opus”,“parameters”:{“minptime”:10,“sprop-stereo”:1,“usedtx”:1,“useinbandfec”:1},“payloadType”:111,“rtcpFeedback”:[{“parameter”:"",“type”:“transport-cc”}]}],“encodings”:[{“dtx”:false,“ssrc”:35418349}],“headerExtensions”:[{“encrypt”:false,“id”:4,“parameters”:{},“uri”:“urn:ietf:params:rtp-hdrext:sdes:mid”},{“encrypt”:false,“id”:2,“parameters”:{},“uri”:“http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"},{“encrypt”:false,“id”:3,“parameters”:{},“uri”:“http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01”},{“encrypt”:false,“id”:1,“parameters”:{},“uri”:“urn:ietf:params:rtp-hdrext:ssrc-audio-level”}],“mid”:“0”,“rtcp”:{“cname”:"","reducedSize”:true}}
which you used web browser ?
you should changing codec setting on server.
I use libmediasoup to build native android app, which feels like libwebrtc’s adaptation to different brands of CPU codec