最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论