[Q] Sending AVCRCP info to bluetooth car audio head unit - Other Tools & General Discussion

Hi,
Many Samsung and LG users have problems with AVRCP support of Spotify application.
It does not send any information to bluetooth car audio head unit.
And it's just Spotify, all other apps like PowerAmp, Samsung stock player and, Google Play music work fine.
So I decide to write a simple app that sends Artist, Album and Track name to my Toyota car audio.
Here is my simple code
Code:
public void sendAvrcpMessage(View view)
{
Intent i = new Intent("com.android.music.metachanged");
i.putExtra("id", 22);
i.putExtra("artist", "No name");
i.putExtra("album","No name");
i.putExtra("track", "No name");
sendBroadcast(i);
}
And when I tested it in the car, nothing happened. Then I opened Android Device Monitor (LogCat) and
observed that every time I press the button that call that method there is error
Code:
01-10 21:53:35.323: E/BluetoothAVRCP(3337): No Track ID present in intent
3337 is process id of Bluetooth share service aka com.android.bluetooth
The same error is observed when current Spotify song is changed.
So I opened Google Play music, started a track and then chaged it. Here is Log info
from Android Device Monitor
When current song changed in Googlle Play Music
Code:
01-10 21:31:41.343: D/BluetoothAVRCP(3337): updateMetaData
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): position
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): streaming
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): albumId
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): currentSongLoaded
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): album
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): track
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): ListPosition
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): ListSize
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): playing
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): id
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): duration
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): previewPlayType
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): supportsRating
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): domain
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): albumArtFromService
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): local
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): rating
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): artist
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): inErrorState
01-10 21:31:41.343: D/BluetoothAVRCP - KEY(3337): preparing
01-10 21:31:41.343: D/BluetoothAVRCP(3337): TrackNum 0 TotalTracks: 0
So my question is how can I understand what's the content of the intents sent by Google Play Music to Bluetooth Service,
because obviously Spotify app fails to send BroadCast, so my app does.

Related

How do you access native AudioFlinger functions from Eclipse using java?

How do you access native AudioFlinger functions from Eclipse using java?
Hi I"m trying to manipulate the audio stream that the HTC FM Radio produces on my EVO 4g. I see in the logcat that AudioFlinger is used to set the volume of the stream, so I know it's being handled by AudioFlinger. How can I access AudioFlinger from Eclipse (using JNI?) to get a hold of this audio stream?
Any small examples???
Thanks,
Jerry

error playaing ogg

hello, here is what i get if i try to play a ogg sound via MediaPlayer
05-26 15:41:50.007 1160 3631 E AudioFlinger: no more track names available
05-26 15:41:50.007 1160 3631 E AudioTrack: AudioFlinger could not create track, status: -12
05-26 15:41:50.007 1160 3631 E AudioSink: Unable to create audio track
05-26 15:41:50.007 1160 3631 E VorbisPlayer: mAudioSink open failed
the strange thing is it works a couple of times, but that stops working...

[APP][2.2+] 977 Music 1.04

977 Music it's simple yet beautiful unofficial client for big and popular radio network 977music.com , that providing an ability to listen to 11 channels of 977 music radio network.
This network feature many live channels of free internet radio programmed by real human beings that you can tune in to any time. Their online radio stations always feature hand-picked selections of the best, most popular music from each genre that he feature. Whether you're tuning into the 80's Music station for the best of popular 80s music or launching the Today's Hits station, 977 Music has it all.
I can't post links so i just add .apk to this thread
With some screen shoots
You can download .apk directly from this thread
Hope you will love it!!

[SOLVED (partially)][Q] AudioFX Force close (Music Player error)

So I'm on newest CM12.1 (April 29th) and I just noticed yesterday that if I try to play music (happens with every player, but not with YouTube or other media playing apps) a message pops up saying AudioFX stopped working and if I hit OK and try to play music again the player itself gets killed.
These are some lines of a logcat which seem to be interesting in this case:
04-30 14:30:30.547 2066 2207 E MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
04-30 14:30:30.547 2066 2066 E MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
04-30 14:30:30.987 2094 2720 E MDM : [168] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
As well as:
04-30 14:30:32.687 2066 2207 E MediaPlayer: Should have subtitle controller already set
04-30 14:30:32.687 2066 2066 E MediaPlayer: Should have subtitle controller already set
04-30 14:30:32.697 5786 5833 W AudioFlinger: session id 15 not found for pid 2066
04-30 14:30:32.697 2066 2207 E MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
04-30 14:30:32.737 2066 2207 E MediaPlayer: Should have subtitle controller already set
So any help is appreciated.
I already tried disabling AudioFX but it doesn't help.
For anybody interested in this case,
I deinstalled Viper4Android and the problem is gone.
So I guess Viper and AudioFX somehow didn't work together
even though I disabled AudioFX a few times and rechecked that.
Gues I have to be patient.
How about your speakers? Are they still working?
CM is known for his sound problems.
That ROM broke some speakers, literally.
TheTeslaCoil said:
How about your speakers? Are they still working?
CM is known for his sound problems.
That ROM broke some speakers, literally.
Click to expand...
Click to collapse
After deleting Viper from my system everything went back to normal.
As said in first post, other media apps like youtube or sound in games was working perfectly fine,
that's where I could have thought about music effects messing up ... :silly:

[Dev] Media play state callback is not called.

I want to use RemoteController or MediaController to listen MX play state (play / pause/ seek), but it doesn't work.
Code:
AudioManager.registerRemoteController() to callback RemoteController.OnClientUpdateListener.onClientPlaybackStateUpdate().
MediaController.registerCallback() to callback MediaController.Callback.onPlaybackStateChanged().
I think something is wrong in MX player, it works on Youtube app.

Categories

Resources