android - Show Lock Screen Media Controls in Expo with expo-av? - Stack Overflow

admin2025-04-15  1

I'm building an Expo React Native app with a music player using expo-av. I have enabled background audio playback, and the music continues playing when the app is minimized. However, I'm struggling to display media controls on the lock screen with play/pause functionality.

react-native-track-player provides this functionality but it doesn't support the new architecture, so I can't use it in my project.

What I Need:

  • Show a media player UI on the lock screen when the app is minimized.
  • Display track metadata (title, artist, artwork).
  • Enable play/pause controls from the lock screen.

Does anyone know how I can achieve this with Expo-av in the latest Expo SDK or if there's a library that works with the new architecture? Thanks

转载请注明原文地址:http://www.anycun.com/QandA/1744717172a86644.html