Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of how to implement audio recorder in your Xamarin.Forms applications. - http://julianocustodio.com/gravar-audio
public async void Reproduzir_Clicked(object sender, EventArgs e)
{
try
{
var filePath = gravador.GetAudioFilePath();
if (filePath != null)
{
ReproduzirButton.IsEnabled = false;
GravarButton.IsEnabled = false;
reprodutor.Play(filePath);
}
}
catch (Exception ex)
{
await DisplayAlert("Erro", ex.Message, "OK");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment