radiodan / radiodan.js

Radiodan audio server
Other
5 stars 1 forks source link

mpd player possibly broken #10

Open tthef opened 9 years ago

tthef commented 9 years ago

The mpd player does not seem to work. I initially thought there was something broken in the meta-radiodan setup, but it does not work on the provisioned raspbian either -- from the logs it would seem that the pls play list is getting sent to mpd as if it was an actual mp3 stream. (I can play the playlist through the mpd daemon the server sets up manually using mpc, i.e., 'mpc -p 49156 load http://open.live ... /pls.pls; mpc -p 49156 play'.) In both cases mpd is version 0.19.1 if that makes any difference.

pixelblend commented 9 years ago

Thanks for highlighting this. We've found lots of intermittent problems with MPD and the BBC Streams recently. Occasionally, the streams will play on the web app and/or using the command line.

I've run some unscientific tests, which involve rebooting a provisioned pi with the magic button app installed. I attempted to load and play the playlist, using the commands you use above.

Test 1

Test 2

Test 3

Test 4

Test 5

Let me know if your machine behaves differently but for me it's frustratingly inconsistent. For the pi 2, Mopidy works well and doesn't take up much CPU to run. We'll use that as the default player for the magic button app.

tthef commented 9 years ago

In my tests it never works via the web app, and it always works from the command line. The logs are similar on both the Yocto and Raspbian setups, except raspbian uses the lame decoder for mp3, which prints an extra message along the lines of 'file does not look like mp3 stream' -- I think that's the pls list being passed directly into the decoder as if it was an mp3 stream.

I have packaged both mpd and modipy for the Yocto set up, so switching over should not be a problem.