Search code examples
xamarin.formscontrolslockscreenaudio-player

Xamarin.Forms: How to implement lock screen audio player controls


I'm building a Xamarin.Forms app that's essentially an audio player, and I need to implement lock screen controls (user can play/pause/ff/rw audio player without unlocking phone) for the audio player on both platforms. I've never done this before, and I'm having some difficulty finding solid documentation that explains how it's done.

Is it possible to do this in Xamarin.Forms, or will I have to implement the functionality separately in both iOS and Android native projects? In either case, how? I'm junior and need a little bit of a jump start.

Thanks for your time, much appreciated. Have a great day!


Solution

  • Have you tried the MediaManager plugin for Xamarin Forms?

    https://blog.xamarin.com/play-audio-and-video-with-the-mediamanager-plugin-for-xamarin/

    https://github.com/martijn00/XamarinMediaManager