I am looking for advice when dealing with mediasoup libraries if used on unreliable networks (ex. mediasoup-client app running on a mobile device). I know that this is only related to mediasoup, so my questions relate more to mediasoup elements: consumers/producers/transports. For example:
On the client: do you recommend watching the “connectionstatechange” in order to take app-specific decisions about the local behaviour (including closing of the consumers/producers/transports) or should build a separate mechanism? How soon after a network loss is this event triggered?
On the server: do you recommend watching the consumer “score” event in order to take mediasoup and app-specific decisions or should build a separate mechanism? How soon after a network loss is an event with consumer score of 0 is triggered?
Do you have any recommendations regarding mediasoup specific elements cleanup on network loss? How soon would you close consumers/producers/transports on a network loss (network might recover quickly or never)? This is, of course, very much app related, but I am just looking for advices from other people that do real-time media transmission.