tasker to auto play a2dp and pause when on radio - MTCD Android Head Units Q&A

I would like that when A2DP is in foreground, it autoplay and autopause when radio is in foreground (because my head unit doesn't pause when radio is launched)
Any way to do that ?
Thanks.

Related

Auto play/pause on A2DP connect?

I have an 8525 and an A2DP equipped head unit in my car. I love being able to just jump in the car and go, BUT I have to manually hit play/pause on the stereo to control if its playing on startup. If I don't when I get out of the car the thing just keeps on playing over the speaker in the phone.
I did some searching and could not find any results. Is there a plugin or program that does this?
lupes5 said:
I have an 8525 and an A2DP equipped head unit in my car. I love being able to just jump in the car and go, BUT I have to manually hit play/pause on the stereo to control if its playing on startup. If I don't when I get out of the car the thing just keeps on playing over the speaker in the phone.
I did some searching and could not find any results. Is there a plugin or program that does this?
Click to expand...
Click to collapse
Nope, you always got to play or pause it. Otherwise it just keep playing through the internal speaker
I have a Venturi and with Mortplayer running in the backgroudn when I connect it plays automatically although it doesn't pause or stop...
is that something you can set up in mortplayer? cuz i tried mortplayer and I never saw an option like that

Audio toggle between wired headset and speaker

This question is related, and a possible workaround for the problem with sound from applications like Tomtom, while playing let's say a CD in the car stereo.
As it is now, when the phone sits in the car holder, all sound is transferred to the audio contact on the car holder.
If not selecting the phone as the source on the car stereo, no sound is heard from the phone, which is a problem if listening to cd, for example.
I have understood that it might be difficult to route the navigator sound to speaker, while all other sound is routed to the connector. But after searching the net for some hours now, I have not found any application that is able to toggle ALL sound betwen wired headset/connector/line-out and internal speaker. There is many applications for toggling between BT and speaker, but not connector/speaker.
Anyone?
Does anyone know?
I am looking for the same solution but to no avail so far.
Not only BT can be toggled, but also the sound when using the FM Radio, as posted here: http://forum.xda-developers.com/showpost.php?p=2934624&postcount=7. So there must be a magic switch somewhere.....
Stupid me !!!!!!
To toggle I now just start the FM radio app when connected EDIT....actually in my car I have to have some audio playing running to make the toggle, e.g. CorePlayer END EDIT .....then mute the radio sound (with the speaker icon) and select speaker (the headset icon (toggles between headset and speaker icon). The just start e.g. TomTom and ........the sound is still trough the speaker......
As I said, still need to find what the radio app actually toggles to switch on the speaker to make this a standalone app/registry fix/switch.
MortScript
Since there was no answer or other solution....yet..... I decided to create a MortScript to enable the speaker for me automatically, maybe someone finds it useful:
#Set Volume low to not disturb too much (does not work for the FM app though...)
SetVolume 1
Sleep 2000
#Start Media Player to have sound output
Run "\My Documents\Business\let.mp3"
Sleep 2000
#Start the Radio Application
Run "\Windows\FMRadio.exe"
#WaitForActive ("FM Radio", 15)
Sleep 15000
#Radio Mute
MouseClick 400,600
SendKeys M
Sleep 1000
#(Re-)Set Output to Wired Headset
MouseClick 400,600
SendKeys O
Sendkeys W
Sleep 1000
#Set Output to Speaker
MouseClick 400,600
SendKeys O
Sendkeys S
Sleep 2000
#Exit Windows Media Player (not needed anymore)
Close ("Windows Media")
Sleep 1000
#Set Volume to Max again for Navigation
SetVolume 255
Sleep 2000
#Start TomTom Navigation Software
Run ("\Program Files\Navigator\TomTom Navigator.exe")
BTW: The WaitForActive is removed/commented out in above script since I tried it but did not work with the following mouse commands since it did not wait long enough...
BTW2: I did use the autorun.exe which is included with MortScript and renamed it the same as the script file I created, so I can run an .exe to actually run the script. That way I could use it together with the Diamond TF3D Config tool (available here in the forum) to create an entry in Programs so that it is only one click to start the script.
BTW3: I have not yet tested anything that would notice when I exit TomTom so it would close the FM Radio app too. Currently I am doing this manually.....

[Q] Bluetooth bug, speaker sleeps if silent audio

So, I'm not sure if this bug can be addressed in MX Player, but here's the issue...
I listen to audio books, a lot of them. If the audio is CD quality without any background hiss, then there are brief pauses of silence between sentences.
When there is a pause of silence for maybe 500 ms or less, my bluetooth radio or bluetooth speaker goes into a power saving mode until sound is heard again. When the silence ends and speaking resumes, the first syllable of the first word is usually chopped off.
How to address this?
1) If MX Player can instruct Android to 'Stay Awake' the bluetooth radio, that would be best.
2) If MX Player can send a barely audible signal or background hiss, that would keep my bluetooth radio/speaker from dozing off due to lack of signal being transmitted.
Again, this happens between almost every sentence if there is no background music or tape hiss. It also happens when listening to some talk radio programs I've listed to. To be clear, it's not [just] between tracks. I also turned off the options to fade in and out.
I am unable to enjoy audio books from any wireless headset or speaker.
I am using a Samsung Galaxy S3 SGH-I747 AT&T (d2att), running either stock 4.0.4 or 4.4.2 or CM12.1 nightlies.
a-raccoon said:
So, I'm not sure if this bug can be addressed in MX Player, but here's the issue...
I listen to audio books, a lot of them. If the audio is CD quality without any background hiss, then there are brief pauses of silence between sentences.
When there is a pause of silence for maybe 500 ms or less, my bluetooth radio or bluetooth speaker goes into a power saving mode until sound is heard again. When the silence ends and speaking resumes, the first syllable of the first word is usually chopped off.
How to address this?
1) If MX Player can instruct Android to 'Stay Awake' the bluetooth radio, that would be best.
2) If MX Player can send a barely audible signal or background hiss, that would keep my bluetooth radio/speaker from dozing off due to lack of signal being transmitted.
Again, this happens between almost every sentence if there is no background music or tape hiss. It also happens when listening to some talk radio programs I've listed to. To be clear, it's not [just] between tracks. I also turned off the options to fade in and out.
I am unable to enjoy audio books from any wireless headset or speaker.
I am using a Samsung Galaxy S3 SGH-I747 AT&T (d2att), running either stock 4.0.4 or 4.4.2 or CM12.1 nightlies.
Click to expand...
Click to collapse
Audio silence is actually not silence on device's view of point. While playing an audio stream and there is no sound, player actually sends series of silent packets. It means bluetooth speaker is still receiving packets even though it does not produce any sound.
Anyway, would you send more information to reproduce this issue on my side?
1. Sample video clip that can produce this issue.
2. Model name of your bluetooth speaker.

Steering wheel keys with Sygic

Has anyone found a solution (apart from the FCC media buttons remapping) to use steering wheel keys with poweramp while using Sygic? Since Sygic version 18.4.2 steering wheel keys no longer work with poweramp (or any other player which is identifying bluetooth or headset keys?) while sygic is running on full screen.
I was able to fix this using Automate, at least for Spotify.
I created a "Key Pressed" item listening to "Media Next", then a "Is foreground app" item listening for Sygic, and a "Audio player control" item with command "Next" for Spotify.
The "is foreground app" item is kinda of unecessary as it works without it as well, both with Sygic running or not, but it think its worthy to prevent any double events or weird behaviour when Sygic isn't running.
On my dasaita px5 unit i had the same problem with sygic and poweramp. Next and Previous track not working. The same problem was reproducible on my tablet using a media keyboard. No response to media keys. Initially started out with automate but due to recent update of sygic i have been browseing through its settings; settings->bluetooth->play via bluetooth to On. This solved the problem for me. Some experimental function according to sygic. Before changing this setting i also noticed a drop in volume when PA was playing and Sygic was started. After changing this setting, no volume drop and expected response to media keys. Applied same change to the car unit and voila...all seems to work well now. No Tasker or Automate needed (but it was a nice opertunity to try automate)

Android Auto - Pandora skip song issue

When I'm playing Pandora in my car through Android Auto, if I skip a song, the display goes back to the stations list. Does anyone know how I can make it stay on the normal play screen?

Categories

Resources