Skip to content

bluez5: add a2dp-source plugin

Julian Bouzas requested to merge github/fork/julianbouzas/work-a2dp-source into work

This PR adds an a2dp-source plugin node to play audio from bluetooth sources via a2dp.

This can be easily tested with a phone and bluetooth speaker by doing the following:

  • Run the pipewire daemon.
  • Connect the bluetooth speaker to your PC using the bluetoothctl tool (an a2dp-sink node should have been created).
  • Connect the smart phone via bluetooth to your PC using the bluetoothctl tool (an a2dp-source node should have been created).
  • Run the pipewire-cli tool.
  • Connect to the pipewire daemon by entering the connect command.
  • Create a link between the a2dp-source and a2dp-sink nodes with the create-link <src_id> <src_port_id> <sink_id> <sink_port_id> command.
  • Play a song in your phone and it should be played in the bluetooth speaker.

Note that this has only been tested using a specific android phone and bluetooth speaker.

Merge request reports