Show title (not song or artist, but active SIP conversation) on Bluetooth CarKit with Android

So, I am currently developing a SIP dialer, and I was wondering how I can change the displayed information to CarKit Bluetooth. I route audio to carkit using:

AudioManager localAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); localAudioManager.setMode(0); localAudioManager.setBluetoothScoOn(true); localAudioManager.startBluetoothSco(); localAudioManager.setMode(AudioManager.MODE_IN_CALL); 

And I'm wondering: how can I set up caller information on a Bluetooth device? I could not find it anywhere on SO. To be more clear, this is what I see during an active conversation:

call

I also use a library for SIP sessions called PortSIP . Maybe they influence what to show? I dont know. Any ideas are welcome. I have already tried searching for AudioManager options, the only option I can imagine leaves room for the metadata audioManager.setParameters () , but I can’t find that the possible key value parameters are available for this function.

Update: They also tried to display information such as trackinfo, but still failed. This is the code I tried:

  Intent intent = new Intent("com.android.music.metachanged"); intent.putExtra("track", "test"); intent.putExtra("artist", "atest"); intent.putExtra("album", "btest"); context.sendBroadcast(intent); 
+5
source share
1 answer

I found a message explaining how to send metadata information from your phone to a connected Bluetooth audio device.

If you just want to send the metadata information from your phone to the connected AVRCP-compatible Bluetooth audio device and DO NOT want to control your application from the Bluetooth device at all, check the message below.

This message

+1
source

Source: https://habr.com/ru/post/1272221/


All Articles