Skip to content

Start recording #493

@ibrar-joyn

Description

@ibrar-joyn

I have faced issue in recording audio. app starts recording but some time we face issue in recording app do not record audio but audio recording state shows app is recording but in actual in native no thread is running.

startRecorder = async (
uri?: string,
audioSets?: AudioSet,
meteringEnabled?: boolean,
): Promise => {
if (!this._isRecording) {
this._isRecording = true;

  return RNAudioRecorderPlayer.startRecorder(
    uri ?? 'DEFAULT',
    audioSets,
    meteringEnabled ?? false,
  );
}

return 'Already recording';

};

I that code first time if hit button audio recording state update that value this._isRecording = true; with out checking wheter app is recording or not. I face issue app is not recording but state shows true

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions