Back button behavior when in a meeting

Facing the same Problem
I am using default UI and extending
So how i can achive this with default UI and custom OnBackPress