Some time ago, I’ve shown different methods of using scripts and configuration files to get Bluetooth A2DP audio working properly. But that’s a problem: it requires setup. Ideally this should all happen automatically right when the headphones are paired.
In the latest releases of PulseAudio and Bluez, I found this to be the case. It works so well that I figured I’d make a screencast out of it just to show you. The application used in the video is pavucontrol, the volume controls for PulseAudio.
(And a sidenote: this video was edited using PiTiVi, which just made a new release. I highly recommend you check it out.)