Play music while recording

  android, flutter, ios

I’m building an app in Flutter for phones and I need to play some music at the same time while recording.

The problem is if I start the music the recording stops,
if I start the recording the music stops.

I’m using audioplayers: ^0.17.4 for playing music,

and noise_meter: ^2.0.0 for recording.

Source: Android Questions