Does MediaElement support the playback button on the headphones? #2552
-
A typical audio player can receive playback buttons from headphones to start playing, pause playing, next track, and previous track. My program uses the MediaElement control, but it doesn't seem to have this effect. Does MediaElement have built-in support for headphone playback buttons? I have implemented MediaButtonReceiver:BroadcastReceiver. Registered with RegisterReceiver and enabled with the RECEIVE.MEDIA_BUTTONS permission in AndroidManifest.xml. But still no such event has been received. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
When using android media element has out of the box support for bluetooth headsets and speakers. No additional action is required by developer to support it. There is no need to add a media receiver. The next and previous track are not currently hooked up and do nothing atm. Play/pause do work though. I have verified this with multiple different bluetooth devices. |
Beta Was this translation helpful? Give feedback.
-
The problem was resolved after upgrading to version 6.0.1. I was originally using version 4.1.2 and had not upgraded for some reasons. |
Beta Was this translation helpful? Give feedback.
The problem was resolved after upgrading to version 6.0.1. I was originally using version 4.1.2 and had not upgraded for some reasons.