Audio recording in Xamarin.forms

后端 未结 3 992
遥遥无期
遥遥无期 2020-12-29 13:37

I have a xamarin.forms project which has to record the audio and save it localy on the app.

Is there any plugin / api which can be used to achieve this?

Also

相关标签:
3条回答
  • 2020-12-29 13:46

    You can use the dependency service to access platform-specific APIs such as AVAudioRecorder on iOS or MediaRecorder on Android.

    0 讨论(0)
  • 2020-12-29 13:48

    There is no plugin that I know of that does this. you could create a generic service interface called IRecorder which has the functionality you need and then implement the IRecorder interface in the platform specific projects using called AndroidRecorder etc using the dependency service

    when implementing your platform specific code you can use these samples

    • Android
    • iOS
    • Windows 10
    0 讨论(0)
  • 2020-12-29 13:52

    There is an open-source plugin for working with audio recorder in Xamarin.Forms :

    https://github.com/NateRickard/Plugin.AudioRecorder

    0 讨论(0)
提交回复
热议问题