How is Jitsi's Mobile App working flawlessly in the background?

Can anyone help me understand how jitsi is able to retain Audio and Video in the background. Only problem that I am facing right now is, when apps comes in foreground from background, mic stop working.

I’ve created a foreground service, but still isnt working properly.