Baseflow / Baseflow/XamarinMediaManager
Lockscreen controls without playing media in app
- Dominant language
- C#
- Stars
- 763
- Forks
- 299
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have a media player on a raspberry pi, which is connected to a TV with hdmi. I can control the media player with an API. Now what I'm trying to implement is that whenever the pi is playing something my Xamarin.Forms app will show the media controls in notifications and on the lock screen on the users phone. Kinda similar to how a chromecast shows these when there is something streaming to the tv.
For now I'm only interested in supporting android. Is there a way to show these controls without actually playing anything?
I've already tried to play a muted mp3 on a loop, which works, however now I'm not sure how to catch the media button presses from the lock screen. Is this possible with the XamarinMediaManager, or should I look for something else?
Contributor guide
Research direction
Start by reviewing XamarinMediaManager's Android support for media sessions, notifications, and lock-screen media controls. Determine whether controls can be exposed without local playback and how lock-screen media button presses would reach the app; done should be a confirmed supported approach or a clearly scoped feature request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100