MediaElement: Disable background playback #2350
imadofficial
started this conversation in
New Feature Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What I'm trying to do
I have this feature in my .NET MAUI app where it can play songs off of my server. It works great (thanks Gerald & the .NET MAUI team for making this feature great!). Now, i wanted to expand even further by adding a feature I call "Music Canvas". However, an issue erose quickely. That issue being the fact that PiP (Picture in Picture) is enabled as well as the lockscreen widgets for both iOS & Android. With no way seemingly to turn it off.
![Simulator Screenshot](https://private-user-images.githubusercontent.com/59332263/387573809-199fc663-9b23-4379-9fb1-ebf8bf1a6842.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzMxMjQsIm5iZiI6MTczOTM3MjgyNCwicGF0aCI6Ii81OTMzMjI2My8zODc1NzM4MDktMTk5ZmM2NjMtOWIyMy00Mzc5LTlmYjEtZWJmOGJmMWE2ODQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1MDcwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZmM1NmUyMzc5M2ZlNzQ5NDJkY2MzNDA1ZGRhN2I4YjA2NzY2MzBkZWRjMzRlMzVlYTQwYzc2NWI1MGZkODImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5Xblc2mHoROX86lhtbdYG3j1khHCx8Qh_j55JeBjF5s)
Feature Description
Would it be possible to have a switch in the MediaElement instance where i disallow it from playing in the background & displaying a lockscreen widget?
Beta Was this translation helpful? Give feedback.
All reactions