loonix / another_audio_recorder

(Null-Safe + V2) Audio Record Plugin that supports record, pause, resume, stop, and provide access to audio level metering properties average power peak power.
https://pub.dev/packages/another_audio_recorder
MIT License
5 stars 8 forks source link

Call not recording #7

Closed pirate-007 closed 11 months ago

pirate-007 commented 1 year ago

another_audio_recorder: ^1.0.1

When I record a phone call I can't hear the conversation between the users in that audio file

Android version: 11

if use the another_audio_recorder package in the usual way( without recording a call) it works fine I can hear the recorded content in the audio file when I try to record a call during that time of the call I can't hear anything in the recorded file but the recording process Is Working

Code of recording function _start() async { print("recording"); try { await _recorder?.start(); var recording = await _recorder?.current(channel: 0); setState(() { });

  const tick = Duration(milliseconds: 50);
  Timer.periodic(tick, (Timer t) async {
    if (recording!.status == RecordingStatus.Stopped) {
      t.cancel();
    }

    var current = await _recorder?.current(channel: 0);
    // print(current.status);
    setState(() {
    });
  });
} catch (e) {
  print(e);
}

}

loonix commented 1 year ago

so you want to record a call using this plugin? could you make en example app so I can quickly debug this issue?