Stop Calls When App On

My app has audio playing at various points in time, so the phone ringing is not great.

Is there a component where I can set the phone to not receive calls, when either audio is playing in the app, or more generally, when the app is open?

Thanks
Paul

Not currently until a 3rd party plugin support comes along