Switching producer codecs

hey guys,

I really like vp9 for screen sharing over vp8/h264, but unfortunately it works only in chrome.
So I was thinking I can use vp9 while I have only chrome peers, but when non-chrome peer joins the party I would just switch to vp8.

The question is what would be the best way to do it in mediasoup?
Creating new set of producers/consumers and then closing old ones? Or may be it is possible to “replace” one codec to another in existing producer?

Thanks!

Yes, there is no other way of doing that. This is not a mediasoup limitation but a WebRTC limitation (and in general a any-RTC limitation).

got it, thanks!