Search code examples
androidandroid-mediasessionmediaroutermediasession

How to display media metadata infomation in the Media Switch output?


I developed a media app with reference to UAMP, but I encountered the following problems. The media switch output screen opened from the notification cannot display the media information being played. But there is UAMP, not sure what I missed? Does anyone know the reason? Thank you

enter image description here


Solution

  • I found the reason myself. Because I didn’t set MediaSession to active correctly.