-
Notifications
You must be signed in to change notification settings - Fork 144
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
Inline <audio> tag #183
Comments
Did you see this? https://www.musicpd.org/doc/html/user.html#config-audio-output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
/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)?setInterval()
wrapped around it to try to reconnect every so often.The text was updated successfully, but these errors were encountered: