Is there a way to detect when a wired headset has been removed? I'd like to write a program to stop audio playback if the headphones are unplugged, since it's pretty embarrassing to have the music blaring out of the speaker.
I figured this should be possible since the phone itself can detect the presence of a headset to know whether to auto-pickup a call. (This is for the apache, though i imagine the function call would be the same for other devices as well.) Thanks.
any ideas?
That's cool to have, but on the HTC Magician, the earpiece is just a normal 2.5mm with mic, plus a answer button, plugging it in doesn't have any visible notification on the phone.
It might work for yours, but I'm not sure about all other devices.
On WM5 just use the state and notification broker. State is saved in the registry.
For WM2003 you have to go at a much lower level I think.
V
If someone is writing an apps, please include for wireless bluetooth stereo headset when lose bluetooth connections.
aatreya said:
Is there a way to detect when a wired headset has been removed? I'd like to write a program to stop audio playback if the headphones are unplugged, since it's pretty embarrassing to have the music blaring out of the speaker.
I figured this should be possible since the phone itself can detect the presence of a headset to know whether to auto-pickup a call. (This is for the apache, though i imagine the function call would be the same for other devices as well.) Thanks.
Click to expand...
Click to collapse
I think this would be a really useful program, especially for Universal owners as sometimes when we disconnect the wired headset, the phone still thinks that it is plugged in and thus we cannot hear any notifications.
Hmm - that's what I thought too, but it looks like (at least on the Apache) that there is no such state. One of the other threads referenced a state named "Headset", but I can't seem to find it.
Nonetheless, the phone must know whether the headset is plugged in, because it prevents you from turning on the speakerphone if the heaset is in.
Any ideas?
you are right!... i will do some work on this and see what happens
I have a x7500 and using Bluetooth Receiver setup with headphones and headset for phone. Good news is that all of this actually works pretty well overall. Bad news is that my MP3 music players restart automatically after I receive a phone call upon the ending of the phone call I can tell Pocket Player not to restart after the phone call and this works. However, iPlay still wants to start no matter what! Is there any way to tell the audio gateway or A2DP or ???.....NOT to restart music after a phone call ends.
I would appreciate any help on this. I have been searching forums and looking at registry entries but no success in stopping the restarting of music players so far.
that is a software compatibility issue
i have no problem listinging or watching movies via AD2P
when phone comes in, it pauses, and goes to Phone mode
when i finish talking, and hang up
it switches back to Music / Movie mode in AD2P
no restart no issues at all
using CorePlayer
i got 3 different headsets
Jabra BT8010
Moto HT820
Sony DS970
they all work perfectly
my guess is the Pocket Player you are using?
try another Audio Player software
Yes. I agree. It is a compatability issue but sometimes there are still options to exert control. So Pocket Player has option to restart after phone call but iPlay does not. Thus Pocket Player offers pretty good control in this area. However, it just so happens that iPlay has some very, very high end features that I really like but just does not have the phone handling at this time with the version that I have (although plays fine thru Bluetooth). I am hoping there might be some registry setting to tell A2DP not to try to restart music after a phone call.
Anyone ever heard of the ability to do this?
doesn't have to be a software issue. I have the same problem but with Touch Flo 3D skin. It starts playing music after the call, even if before the call I wasn't listening to the music I've tried to disable the Touch Flo 3D, but then the standard Media Player starts after the call . I have to remember to turn off the music after every call - it's driving me crazy!!
Hi folks, I've been having this very frustrating problem with A2DP that I can't seem to find anywhere else on the forums.
My bluetooth headset (Nokia BH-905i) connects to my nexus 4 just fine, and I've been using it to listen to music since I get my nexus in january. But recently, every time I connect my headset, and I go to play any music or other sounds that play through the media channel, it comes out the speaker on the phone. In addition, when I use the volume slider I get the "speaker" icon instead of the "bluetooth" icon that I used to get.
My bluetooth headset has worked fine since the OTA update, it's just very recently (last week or two) that this issue has been happening.
The first time it happened, a simple reboot would fix it, now I can reboot and re-pair the headset all I want, it just won't work.
Has anyone else had this issue?
PS. I will also add that the next/previous track buttons still work, but the play/pause button DOES NOT! Very strange!!!
Am I seriously the only one with this problem?
PickleHead said:
Am I seriously the only one with this problem?
Click to expand...
Click to collapse
What music player app are you using? That could be the problem right there. I sometimes have this problem with my JVC Arsenal head unit, but usually disabling and re-enabling bluetooth does the trick. Don't have to unpair or reboot, just toggle BT on and off.
Anyone know how to get the track info to transmit? It used to work with Apollo and Pandora, but it won't work with Spotify or anything else. In fact, it doesn't work at all on the N4
I use DSub, but I've tried google music, and also any other "media" sounds don't go through the headset as well ie: Youtube, games, etc.
PickleHead said:
I use DSub, but I've tried google music, and also any other "media" sounds don't go through the headset as well ie: Youtube, games, etc.
Click to expand...
Click to collapse
have you checked the device profiles in the bluetooth menu? there is an option for phone audio, and an option for media audio, check them both
Yes I'm sure, I've also toggled them multiple times to try and get it working...
I also have this same problem. I'm using CM 10.1 nightlies
For some reason I able to pair my phone but not the audio.
In the Bluetooth settings though I only have the option for phone audio and not media audio. After checking on a couple of forums, it shows that my radio does support Bluetooth streaming through a2dp, but for some reason I cannot get it to work on my phone...
Edit:
It seems as though A2DP is broken in CM 10.1 as in stock android roms. I'm not 100% about this, but thats what it looks like.
Hi,
I do use AD2P audio a lot, and never had this issue (Sony MW1).
I m using exclusively AOSP or AOKP based roms (never use stock CM 10.1 because of how silly big is the navbar), but I can give it a shot during my next flashing session for testing
I don't have any problem pairing the audio. The checkbox goes and the headset actually beeps. It's connected, android just isn't sending the audio to the headset.
Me too
PickleHead said:
I don't have any problem pairing the audio. The checkbox goes and the headset actually beeps. It's connected, android just isn't sending the audio to the headset.
Click to expand...
Click to collapse
I've got the same issue.
I have tried with both jawbone and jabra headsets, no joy.
If I toggle bt on/off/on, connect the headset and then try playing music immediately I get ~1 second of audio over bluetooth before it goes silent.
I'm currently on PA 3.15 with moles kernel, but am going to try some other kernel/rom combos.
if anyone knows which logs i should be looking at i'm happy to upload them
Not quite the same problem, my music plays out of the phone speaker. Also I'm running stock rom.
PickleHead said:
Not quite the same problem, my music plays out of the phone speaker. Also I'm running stock rom.
Click to expand...
Click to collapse
If i wait more than 1 or 2 seconds after connecting my headset it comes out of the speaker also, as the bt media connection dies. I only get the little bit of audio if i hit play right after I connect the headset
I managed to find a very strange work around...
I installed this app: https://play.google.com/store/apps/...sImNvbS5tYXhpc3Rhci5tb25vYmx1ZXRvb3RoZnJlZSJd
I turned on the app, and I could listen to music over mono mode (which sounds AWFUL). I then turned the app off, and when I changed the volume with the volume buttons I noticed the volume bar was displaying the bluetooth icon instead of the speaker icon.
My app was playing music, I didn't hear anything, but my headset was still outputting the characteristic 'hiss' of being in mono mode. So I went into the bluetooth settings and turned off mono mode, and now it is playing music through A2DP finally... We'll see if this problem occurs again and I'll see if the same process fixes it again. I'm just glad it's finally working again without resetting my phone.
I just wanted to update my post for anyone else who might have this problem in the future. I've performed this fix once before my last post and I haven't had to do it again, I've also uninstalled that app and everything is still working great.
It worked for me too!
Thanks to PickleHead and his workaround I'm listening again.
Thanks!!!
Media audio VS. Call Audio
Hi,
I have Samsung galaxy S3 with android 4.1.2 connected to my fordAudio BT device.
I am playing music using the original media player that came with the Android.
The BT connects quickly, but I can't hear the media I'm playing.
Recently I have discovered a "workaround":
When I disable the "call audio" (using the BT menu in settings) and leaves only the "media audio" checked, I am able to hear the media play.
If I re-enables the "call audio", the sound mutes immediately.
Does this helps to understand the issue?
Hi,
I have Samsung galaxy S3 with android 4.1.2 connected to my fordAudio BT device.
I am playing music using the original media player that came with the Android.
The BT connects quickly, but I can't hear the media I'm playing.
Recently I have discovered a "workaround":
When I disable the "call audio" (using the BT menu in settings) and leaves only the "media audio" checked, I am able to hear the media play.
If I re-enables the "call audio", the sound mutes immediately.
Does this helps to understand the issue?
Click to expand...
Click to collapse
I think that is a different issue.
Thanks to PickleHead and his workaround I'm listening again.
Thanks!!!
Click to expand...
Click to collapse
I'm glad I could help mrjole. This was a very frustrating issue, I could not listen to my music for about a month!
Bluetoot Media Audio failing
PickleHead said:
I just wanted to update my post for anyone else who might have this problem in the future. I've performed this fix once before my last post and I haven't had to do it again, I've also uninstalled that app and everything is still working great.
Click to expand...
Click to collapse
I'm having exactly the problem described here, but this solution doesn't work for me. I have a Galaxy S4 and the bluetooth media audio sometimes works when I boot the phone up, but later it doesn't work. I tried this MonoBluetooth app and it doesn't seem to help. When I tell it to turn on the the mono signal, it says the media is disconnected even though the bluetooth module says it is connected to the AD2P device with media audio. On cases where it does connect, it seems to work, but in that case the bluetooth works with out this app fine.
I'm running 4.2.2 and see this on both the MDK and ME7 code base. I'm looking for a good soluton. I tried the Bluetooth Fix Repair on Google Play, but it can't seem to find my bluetooth configuration folders.
selicoh said:
Recently I have discovered a "workaround":
When I disable the "call audio" (using the BT menu in settings) and leaves only the "media audio" checked, I am able to hear the media play.
If I re-enables the "call audio", the sound mutes immediately.
Click to expand...
Click to collapse
I have had exactly this problem for a couple of days with my S4 connected to my Jabra Freeway car speaker. Also in my case, disabling call audio makes the music pass through, but then I can't use the phone via the speaker which is sort of the whole purpose of the thing!
But I just found a simple workaround: I simply called my phone from another phone to check that phone audio passed through with both options enabled. It did. But it also cured the problem: After the call, media audio worked again - with both options checked.
marlar said:
I have had exactly this problem for a couple of days with my S4 connected to my Jabra Freeway car speaker. Also in my case, disabling call audio makes the music pass through, but then I can't use the phone via the speaker which is sort of the whole purpose of the thing!
But I just found a simple workaround: I simply called my phone from another phone to check that phone audio passed through with both options enabled. It did. But it also cured the problem: After the call, media audio worked again - with both options checked.
Click to expand...
Click to collapse
I'd be interested to know if this fixes the problem for any length of time. Occasionally, and usually after a reboot, I can use the media audio, but then it fails when I try it again. Fiddling with the connections and apps sometimes makes it come back on, but usually only for a short while. While it is connected, it seems to stay connected.
I have a Nexus 4, still running 4.2.1.
I use bluetooth headphones with it which generally work. However, sometime they connect and media sound still comes out the phone speaker,
Disconnecting and reconnecting doesn't help. The awkward trick I've learned is to run the Vonage phone app, and make a phone call, which some how turns the media sound on in the headphone.
There has to be a better workaround than that.
I know there were some bluetooth fixes in 4.2.2, but I don't want to upgrade until I've tested LTE which rumor says is coming next month in Atlanta.
No replies? I can't be the only one seeing this.
I can be a little more definite. It seems that on the first bluetooth connect from an ad2p device after a reboot, media sound still goes to the internal speaker. As I mentioned above I happened on a terrible workaround. If I invoke the vonage app and place a call with it suddenly the bluetooth device takes over the media sound.
It's painful to have to make a call just to kick the bluetooth headphone into media mode.
I don't know if it is the same issue, but my ad2p cuts out sometimes and won't work until a reboot. (It still shows up as working, and sound stops coming from the phone, but...) On 4.2.2 here.
I'll have to give your placing a call trick a try.
Phone Samsung Galaxy S II
I am having a problem with no audio being routed to my Bluetooth in vehicle. This is a critical bug for me due to where I live having one of the strictest distracted driving laws.
After turning on the device no audio is working during calls. Mic and speaker since neither person hears anything.
Media audio doesn't work either. But I have found a non permanent fix for that.
If I connect to Bluetooth and start music it is silent but if I go into the Bluetooth settings and choose the preferences for that specific device and toggle the "media audio profile" off then on and restart the music it will work fine until I lose the connection. I have to repeat every power on.
The same type of fix doesn't work for call audio though.
Edit: Just noticed if I leave the phone audio profile turned off that media audio works fine all the time.
I too second what shadowofdarkness has mentioned in the post before. I have an "HBS 700" headset. When both profiles phone/media are on, and you hit the volume rocker the bluetooth audio is disabled. You disable both and enable media audio alone and it works fine sometimes. Else unpairing and pairing back and enabling only media audio makes it work without a hitch. Enabling phone audio at anytime brings us back to this issue.