I propose a solution that there is an event like for MediaEnded, but for activated MediaButton. #2278
Replies: 3 comments
-
This is proof that it is indeed MediaElement that has the reservation on Media Button : |
Beta Was this translation helpful? Give feedback.
-
So here I propose that there is an event like for MediaEnded, but for activated MediaButton. |
Beta Was this translation helpful? Give feedback.
-
Here` is the solution I propose to handle the management of Media Button. There are three files to modify, the modifications made with the help of Copilot are tagged //frdp.
and c#
|
Beta Was this translation helpful? Give feedback.
-
I try in vain, with COPILOT too, to retrieve the actions on the buttons of my bluetooth headphones via a BroadcastReceiver on the IntentFilter "android.intent.action.MEDIA_BUTTON".
I see them passing via adb.exe, they are passed to my application, but I do not receive anything. However, I do the same thing on Phone_State and there it works very well. I deduced that it is the MediaElement that I use that retrieves them. And MediaElement does not offer the possibility of having them.
So here I propose that there is an event like for MediaEnded, but for activated MediaButton.
This my code that don't work:
And this is the manifest :
Beta Was this translation helpful? Give feedback.
All reactions