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

前端 未结 2 621
醉酒成梦
醉酒成梦 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: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.

提交回复
热议问题