How to stream audio from Android to PulseAudio server? I have a home linux server running the PulseAudio - with shared audio devices, that are connected to cool sound system.

And I have an Android 4.4-based phone. I want to stream audio from my phone to the PulseAudio server.

How to do that?
For my linux distribution (Fedora 20) it's quite simple:


[PC] Run PulseAudio. (Runs automatically on Fedora)
[PC] Load module bluetooth-discovery. (It's auto-loaded on Fedora)
[PC, Android] Pair with Android-phone via Bluetooth.
[Android] In device's options set the profile "Use for media audio".
[PC] Connect to the phone.
[Android] Play music. (I use Google Play Music - it works)
[PC] The phone's stream is detected as an Input Source - in case, you want to mute or amplify it.




Caveats

The only problem is the step 5. I can't connect to PC from my phone - I think, it's a linux problem - and it's another question for another forum.