Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable network connectivity check when starting playback #34

Open
drygdryg opened this issue Nov 9, 2023 · 0 comments
Open

Comments

@drygdryg
Copy link

drygdryg commented Nov 9, 2023

I'm using your app to listen to audio via Bluetooth headphones connected to my smartphone, since I don't have a Bluetooth dongle for PC and can't connect headphones directly.
To expose Pulseaudio TCP socket from PC to phone, I connect my phone using USB and use 'adb reverse`:

pactl load-module module-simple-protocol-tcp source=$audio_source record=true port=1234
adb reverse tcp:54321 tcp:1234

And then on the phone in SimpleProtocolPlayer I use 127.0.0.1:54321.
But when the phone is not connected via Wi-Fi, I can't start playback, the app displays a toast notification with the error "No network connectivity."
Could you add a checkbox to disable network connectivity check or completely remove it?

https://github.com/kaytat/SimpleProtocolPlayer/blob/8345ab801fc112fd8b246c55b8550a9bfabba69e/src/main/java/com/kaytat/simpleprotocolplayer/MainActivity.java#L373C13-L377

And thank you for the useful app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant