Android network audio player (fork) https://github.com/kescherCode/PulseDroid
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeremy Kescher 7a5c8430b7
Prevent host lookup from hanging
7 months ago
app Prevent host lookup from hanging 7 months ago
gradle/wrapper Update Gradle, replace JCenter with Maven Central, and other small changes 8 months ago
.gitignore Buffer timeout is now adjustable. 7 months ago
LICENSE - initial commit 12 years ago
README.md Use even less bandwidth by sending 44.1k mono. That's a reduction of 54% 1 year ago
build.gradle Buffer timeout is now adjustable. 7 months ago
gradle.properties Migrating to AndroidX 2 years ago
gradlew Convert to android studio project 4 years ago
gradlew.bat Convert to android studio project 4 years ago
settings.gradle Convert to android studio project 4 years ago

README.md

PulseDroid - Network raw audio player

PulseDroid is an audio player for Android that plays 48000Hz pcm16le stereo audio from a simple TCP connection.

PulseAudio has module-simple-protocol-tcp that provides such an endpoint, which allows streaming audio to an Android device.

Setup

  1. Load module-simple-protocol-tcp.

    Warning: this PulseAudio module provides an endpoint that allows anyone in your network to listen to the connected source, and to play back audio. Make sure that your network is trusted or that you secure the connection appropriately.

    Run the following to add and configure the module; of course, the port and source can be modified as you want:

     pactl load-module module-simple-protocol-tcp rate=44100 format=s16le channels=1 source=0 record=true port=12345 listen=0.0.0.0
    
  2. Install the app and start it.

  3. Enter the host and port of your PulseAudio endpoint and hit play.

The source= argument specifies the default source of connecting clients. It can be changed for connected clients using a configuration program like pavucontrol, or from the command line.

TODO: more advanced setup possible

History

The original project is https://github.com/dront78/PulseDroid, but it has been immediately abandoned after the first commit, leaving it in very bare-bones state.

https://github.com/Konubinix/PulseDroid shortely picked up the project about 5 years later, improving the android experience, for example by using a foreground service.

In 2018 I, ferreum, was looking for just such an app, found this project and reworked everything, wanting a more polished experience. The app can now play audio in the background after closing the main screen, has improved buffering, error handling, state handling, and a modernized structure. More improvements to follow as I see fit.

And now a message from the original creator at the beginning of this project:

This software is a some kind of network music player I done for my personal purposes. I use it with PulseAudio over network to watch a video or listen music from my pc with in a headphones ;)

It is very simple to setup a PulseAudio server to send audio output over network

pactl load-module module-simple-protocol-tcp rate=44100 format=s16le channels=1 source=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor record=true port=server_port listen=ip_address
                                                                                        ^^^^^ change this with oyur own device ^^^^^^^

And now you just connect to ip:port via PulseDroid software and enjoy

Hope it will be very useful somewhere for someone else.

Regards, Ivan ;)

And useful it was. Thanks Ivan.