Can someone explain where one would use the resetdecoder request of the AudioBridge?
If I understand it correctly, one would use it to reset the internal janus decoder that is being used to receive the stream from the client and mix with the other participants.
However, if the client is receiving the N-1 mix of all participants but themselves, how will they know that they need to reset the decoder?
Is there by chance an admin request that can ‘resetdecoder’ on any participant id?
I’m asking because I am noticing that some participants in the audiobridge end up with a stream that stutters consistently. I asume the resetdecoder message might help here. But, I would love to be able to reset the decoder for the participant when I hear it.
At the moment no, resetdecoder can only be sent by a specific user for themselves, but I agree it might make sense to have an Admin API version of it, where you can provide room/userid, a bit like we also do for suspend and resume. That said, we added resetdecoder for those instances where audio becomes unrecoverably garbled, suggesting a broken state in the decoder: stuttering may or may not be such a state. The new jitter buffer should help with that already, and there’s a proposed pull request that should help even more, once it’s cleaned up a bit.