Streaming to Android #1656
-
I'm running mpd on a Rock Pi 4, using Manjaro Arm. This works as well as I could ask, so now I'm trying to use this as the base for streaming my music to my phone. I started out with these handy directions on how to make this work. I am using M.A.L.P. as the client on Android. Now M.A.L.P. does see the database but when I want to play an album it seemingly just skips through to the last track, not playing a single second of sound. I've tried this with both http and nfs for the music_directory. Here's my mpd.conf on the phone:
Using the default config the client will both see and play the music that is stored on my phone, so I don't think the client is doing anything wrong here. But the server is also not giving me any unusual messages. I can access the directory via http using a browser and I can mount and read the nfs-directory from another PC so those shouldn't be the problem either... Is there some way to run the mpd-server in debug-mode on android to get to the bottom of this? Or am I overlooking some painfully obvious mistake I made here? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Check https://www.musicpd.org/help/ there you'll find generic troubleshooting instructions, most of which are also relevant for Android. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion but I already checked that. I don't understand how I can pass those debug-options to mpd on android though, so here I am... |
Beta Was this translation helpful? Give feedback.
-
May I suggest an easy solution? Define http streaming output in mpd.conf of central server (rootgordon's rockpi) - eg generic lame encoder with 320 kbit/s and port 8000 (YMMV)
On your Android device with MALP client
|
Beta Was this translation helpful? Give feedback.
-
Here we go. Lets assume 192.168.1.0/24 network, 192.168.1.1 server with /srv/music directory shared via NFS. On main server /etc/exports On the Android device Android\data\org.musicpd\files\mpd.conf (UTF-8 encoded)
Connect with Android client software (eg MALP) to localhost:6600. Enjoy. |
Beta Was this translation helpful? Give feedback.
-
So recently I've had to get a new phone, prompting me to give this another shot. Initially I ran into the same problem but through sheer force of questioning everything I finally found out what was wrong (at least in the case of an nfs-mount): The files on the server need to be world-readable. It's kinda obvious in hindsight, I don't even know what user-ID mpd, or android for that matter, is using. I hate when these threads remain unresolved so this is my solution for anyone who might run into the same problem and finds this. Also here's a one-liner I used to chmod all the files recursively (based on an answer in this thread):
It leaves directories world-executable while only setting the read-bit on files, you may want to adjust user and group-rights to your liking. It's handy for large collections, which anyone attempting this setup probably has. Using this with wireguard for remote-access works like a charm and clears up loads of space on my phone so I can take more pictures of my cat. Amazing. |
Beta Was this translation helpful? Give feedback.
So recently I've had to get a new phone, prompting me to give this another shot. Initially I ran into the same problem but through sheer force of questioning everything I finally found out what was wrong (at least in the case of an nfs-mount): The files on the server need to be world-readable.
It's kinda obvious in hindsight, I don't even know what user-ID mpd, or android for that matter, is using. I hate when these threads remain unresolved so this is my solution for anyone who might run into the same problem and finds this.
Also here's a one-liner I used to chmod all the files recursively (based on an answer in this thread):
chmod -R a=r-wx,u=wr,g=wr,a+X *
It leaves directories world-ex…