microphone always turns on if producer is set once

flutter application start and user start meet as producer okey mic is on, consumer okey mic is off, but when producer joined a meet as consumer mic is on, therefore phone behave a producer, voice dont go listener, can listen producer but iphone mic badge(yellow) is active, can not sound off, just reduce minimum level, sorry for my english, i hope so i could explain. by the way is a Flutter application,

if user always is listener role this is not happening, work well

Having a look at the code what I have understood is that you are either consuming or producing i.e you are not doing both for one user which is causing you the issue. So whenever user1 joins and user2 have audio on then user1 will produce his own audio and also consume user2’s audio.