Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lock screen media control for custom Media player

I am using my own custom MediaPlayer rather than android native MediaPlayer ,can i use MediaSessionCompat for lock screen media control?

like image 228
Ramprasad Avatar asked Oct 31 '22 04:10

Ramprasad


1 Answers

Yes, you can use MediaSessionCompat with your custom media player,it will just works as a bridge between your application and the system for providing media metadata and media controls, it wont limit you in any way in how you actually play media.

like image 162
immutable Avatar answered Nov 17 '22 10:11

immutable