[Q] Music Control APIs? - Android Q&A, Help & Troubleshooting

I'm just starting out with app development and looking to try making a simple music control program. Problem is I can't seem to find the APIs associated with sending play/pause next, last, etc. commands to the active music app. Is using the Bluetooth stack controls appropriate/possible?

Related

AVRCP support?

Hi
Anyone know the specifics of the Hero's AVRCP support?
I've got a set of Sony stereo bluetooth headphones with play/pause/skip controls on them. They work fine on the HTC audio player, even when the phone is locked I can control the music.
However i've just signed up to Spotify and installed the app.... the controls don't work at all, however music is played through the headphones. If the HTC music application is running in the background but paused, pressing 'pause' actually starts the HTC music playing instead of pausing Spotify! This is the same as other audio apps like Google Listen, audio comes over Bluetooth but commands are not listened to.
It seems HTC Music is hard-coded to intercept all AVRCP commands, and not pass them on to a more suitable program if one is running. Can this be changed at all?

How to change what app uses Bluetooth controls?

Does anyone know how to change what app uses Bluetooth controls? I use two different Bluetooth devices that have play/pause, fast forward and rewind controls for music but if I use them it only works in meridian player and not others.
I mostly use subsonic for music and there is an option to use the app with Bluetooth controls but the selection doesn't work. If I have subsonic open and I hit play/pause it will just open meridian and start playing music.
Same thing happens to me. Any help would be appreciated

[Q] Sound redirection

Hello
I have a car sound system that includes bluetooth support. When I do a phone call, the system mutes FM, or switches MP3 player to pause, and pushes the voice call to loudspeakers.
I have a problem with all GPS software: they put sound out to media stream. Media stream can be read by my sound system, but only when ... reading media stream. When sound system is configured to play radio from FM, or read MP3, it iwll ignore media stream from BT.
=> I need to redirect, on phone side, either, all media stream, or, all stream from selected softwares (Gmap, Navigation, ABE, Trapster ... ) to, either Ring stream, or VoiceCall stream.
Are there existing apps doing this ?
Does kernel support dmix ? I know what I need can be done on a desktop Linux using Alsa-Dmix
For those who did not know there are several sound streams on their phones, install from Market any Volume Control application ... (I prefer the one with a blue circle logo).
I have installed LinuxInstaller, and run things in the background. I am looking at ALSA ATM. I have all Linux options in hand, but I am not sure Alsa can be managed via chroot; and I am not sure Dmix is supported anyway ...
Tanks for help.
Please use the Q&A Forum for questions Thanks
Moving to Q&A

Podcast/media players and headset controls

I listen to alot of podcasts (using either BeyondPod or Pocket Casts), and would like to control playback using headset remote controls - e.g. the play/pause button on a Sony MW-600 bluetooth remote, or the same on a Klipsch S4A headset. The problem is that headset controls like these usually fire up the default media player (PlayerPro in my case), rather than controlling the Podcast player (e.g. BeyondPod).
I could theoretically configure BeyondPod to use the standard Android media player instead of its built-in media player, but then I would lose the enormous benefit of it remembering where I left off when I pause a Podcast at the end of a journey.
Has anyone here worked out a good way of controlling a Podcast player using a headset remote?
Doesn't have PlayerPro an option to disable headset interaction?
In PowerAMP for example you can toggle if you want to handle handset commands or not, giving the chance to be handled by another app.
AzureusPT said:
Doesn't have PlayerPro an option to disable headset interaction?
In PowerAMP for example you can toggle if you want to handle handset commands or not, giving the chance to be handled by another app.
Click to expand...
Click to collapse
Yes I've discovered the option in PlayerPro to disable the headset control. Now I can control the volume using the headset controls in BeyondPod, but none of the other buttons are functional (on either the Sony MW-600 or the Klipsch S4A).
Has anyone here managed to get headset playback controls with BeyondPod?
Disconnecting audio controls from default music app
Hi,
I use my bluetooth headset mostly for listening to Audible and Google Listen.
Media controls automatically invoke default music player, and control it. Only volume controls work in other players.
Is there a way to associate a different player with the bluetooth media controls (stop/start/skip)?
I am using hydrog3n ICS on a Galaxy Sii, but I believe this is a generic issue.

[Q] Media Utilities and headset controller apps

Hello,
I have identified a problem with my phones media configuration. I use Tasker with the Media Utilities app to automate some of my Spotify music tasks. In particular identifying when I am playing music and when I am not (something Media Utilities has a built in ability to do.
I wanted more functionality from my one button headset so I installed Jays Headset Control app. It allowed me to generate play. next, previous, volume etc features to multiple clicks of the headset button. However, since enabling Jays the Media Utilities app appears not to work properly any more - it can no longer detect when I am playing music. Disabling jays fixes the problem.
I tried using Headset Droid instead to see if it was something Jays was doing or something Media Utilities is doing and it results in the same loss of functionality. I can only assume it is therefore to do with Media Utilities.
Can anyone advise on how to investigate further or implement a fix. I tried asking the developer but they never responded.
Thanks
Andy

Categories

Resources