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

前端 未结 2 622
醉酒成梦
醉酒成梦 2021-01-26 20:26

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 pho

相关标签:
2条回答
  • 2021-01-26 21:05

    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

    0 讨论(0)
  • 2021-01-26 21:10

    Not sure if you found something or not. I struggled a lot with this. This plugin here https://github.com/DanielCKennedy/XamMusic does what you need. You can modify the implementation to play music from your files then the system music files.

    But it still has no option to play video on locked screen. I have worked on that and making a sample to help others. Its ready for ios but not for android at this stage.

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