RasPlex as bluetooth A2DP client

Hi all,

Recently I’ve buyed Pi 3 to replace my Pi 1 B model. Mostly because of built in bluetooth. Rasplex has built in pulseaudio - when I connect my phone to it - it recognizes RasPlex like my BT Car audio - and send music via BT. Unfortunately I don’t have sound from HDMI or analogue output from raspberry. I am using 1.6.2 build, on 1.0.3 it was the same situation.

Presumably you have selected Pulseaudio as Audio Output?

If so you need to change it back to HDMI or Analogue to get sound output from those connections.

Incidentally, 1.0.3 didn’t support BT audio, so you couldn’t have BT audio in that version.

I am currently at 1.6.2 - Pi is connected to Denon AVR-2113 so output is HDMI passthrough. I have sound from movies etc, everything played from Pi, but no sound from connected phone via BT

BT is one way, RPi->BT audio device, it will not allow you to play from BT device ->RPi.

Regards

So why phone recognize RasPlex as A2DP client like BT headphones or car audio?

Because that’s the Bluetooth drivers and connection software doing that, it makes a connection, there is no audio functionality to support audio from a BT device to the RPi, as I stated previously

I think that this (audio from phone via bluetooth to HDMI) would be nice, allthough outside the scope of rasplex. I did some investigations and note my findings here.

If you connect your phone to rasplex and use it for media playback, then a connection with the pulseaudio sound server is created. In the pulseaudio command line you can also see this connection: # PULSE_RUNTIME_PATH=/var/run/pulse pacmd opens a shell to interact with the pulseaudio sound server, and inside this shell you can show the sound sources available to pulseaudio with list-sources. Sadly, if you display the “sinks” (sound targets) of pulseaudio with list-sinks, you will see that pulseaudio only has a “null-output”. Most likely (I did not test this) there will be another one added if a bluetooth speaker is connected to rasplex.

If we would be able to get an HDMI output from pulseaudio, I think the bluetooth audio transfer should be no problem. I’m not sure here, but I think this can be hard to do since the plexhometheater seems to access the HDMI audio through a more direct approach. Maybe someone who knows the internals some more could comment here if there is a chance to get further with some thinkering?

@NedtheNerd : is it possible to add an bluetooth usb stick and configure LibreElec + OpenPHT as a BT receiver?