NateRickard / Plugin.AudioRecorder

Audio Recorder plugin for Xamarin and Windows
MIT License
164 stars 68 forks source link

Pause recording #12

Open Altaf07Latheef opened 6 years ago

Altaf07Latheef commented 6 years ago

Is there any way to have the pause functionality implemented? or is it there?

NateRickard commented 6 years ago

Currently there is no capability to pause recording.

albansejdiu commented 6 years ago

Theoretically: you should keep the current audio position (current recording length) when paused, and after you press Record again, the audio stream should seek to that position and continue recording from there. But this, will need the feature of inserting a recording next to the current one. For this, and also the feature of overwriting, I just opened a new separate issue.

Altaf07Latheef commented 6 years ago

@albansejdiu Thanks for the advice. What i thought of doing is to concatenate the audio files. Because from each stop recording we get a file which can be stored in list for this operation. So some work-around can be done i hope. If you get some solution do share, thanks.

NateRickard commented 6 years ago

Reopening this as it would be a good feature to add at some point.

seanwedig commented 6 years ago

@NateRickard - we also have need of this functionality, and we're considering PRing back. I've started skimming through the codebase... but do you have any thoughts on how you'd see it being implemented?

BillFulton commented 5 years ago

On iPhone8 with iOS 12.4 the sound volume on playback was extremely low with any setting of the volume buttons. This fixed it:

In AppDelegate.cs, add:

AudioPlayer.OnPrepareAudioSession = x => 
{
    // Route audio to the lower speaker rather than the upper speaker so sound volume is not minimal
    x.OverrideOutputAudioPort ( AVAudioSessionPortOverride.Speaker, out NSError error );
};