Open kousu opened 5 years ago
3. I want to be able to give people a link to ympd and have it Just Work, so it should also say ``<audio ... autoplay>`, but playing continuously is tricky: * When mpd runs out of tracks or is paused, it shuts down the http stream, and most players (VLC, mplayer, etc) need to be manually reset. Firefox too. It would be good if there was a `setInterval()` wrapped around it to try to reconnect every so often.
Did you see this? https://www.musicpd.org/doc/html/user.html#config-audio-output There is an option always_on for audio outputs that may solve at least that problem ;)
I would like ympd to be the only UI I need to offer to users in my house. I have mpd configured to be streaming-only, and these days the
<audio>
tag is super slick and pretty reliable so I feel like we should be able to do an all-in-one thing these days!Here's my mpd.conf, based on the default sample, so probably it's what most people are also running:
I would like to add
Somewhere in
index.html
and have it play.There's a few subtleties about this:
1) that URL is impossible.
/stream/
->localhost:8000
, and rewrite the player as<audio src="/stream"></audio>
<audio src=":8000" controls></audio>
, but that will add a bunch of buttons to the UI that will collide with the pre-existing ympd controls, and it will be easy to confuse the client<audio>
controls with ympd's pre-existing play/pause/stop/skip/volume controls. What does everyone think? Should we hide the<audio>
controls and instead control it indirectly (via javascript) (e.g. just set volume to the max and make it play iff mpd is playing)? 3) I want to be able to give people a link to ympd and have it Just Work, so it should also say`<audio ... autoplay></audio>
, but playing continuously is tricky:setInterval()
wrapped around it to try to reconnect every so often.