I am trying to create a consumer in the client-side, but getting an Unsupported Error which says that it cannot consume this Producer.
I looked at the source code, and the problem is that remotePayloadType of extendedRtpCapabilities.codecs is undefined while firstMediaCodec.payloadType is not
I will need much more detailed info, such as your device._extendedRtpCapabilities and all the parameters you are calling transport.consume() with in client side.
Thank you for your help ibc. the problem was that I was getting wrong extendedRtpCapabilities. instead of returning rtpCapabilities or the router, I was using getSupportedRtpCapabilities method, whicn gave me a problem. Your question was extremely helpful in solving the problem.
this is great! thank you for doing that. but do you know why router.rtpCapabilities could be different from the return value of router.getSupportedRtpCapabilities() ?
Because they are not the same at all. The former returns all the capabilities of mediasoup while the latter returns the computed ones in each Router based on given mediaCodecs.