Thank you for your donation!


Idea: Enable HTTPD streaming output in GUI (aka web radio)
#1
Hello. I was thinking about enabling the HTTPD streaming directly from the web UI.

I mean the web radio feature of mpd, the one where you add an httpd output in the mpd.conf and it'll stream at the port you specify.

more info here:
https://wiki.archlinux.org/index.php/Mus..._streaming

I'd like to have it exposed in UI, so that I can turn on/off without manual editing the mpd.conf.

Quote:HTTP streaming
Since version 0.15 there is a built-in HTTP streaming daemon/server that comes with MPD.
Configuration
To activate this server simply set it as output device in mpd.conf:

Code:
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "vorbis" # optional
port "8000"
# quality "5.0" # do not define if bitrate is defined
bitrate "128" # do not define if quality is defined
format "44100:16:1"
always_on       "yes" # prevent MPD from disconnecting all listeners when playback is stopped.
tags            "yes" # httpd supports sending tags to listening streams.
}
Reply
#2
Hi,

Yes its doable but whats the usage scenario?

-Tim
Enjoy the Music!
http://moodeaudio.org | http://twitter.com/MoodeAudio | http://github.com/moodeaudio
Reply
#3
off the top of my mind

- Web radio 
open the port on the router and you can listen it from anywhere, just by pointing the browser to the stream's url; can set it to lossy and downsample etc)

- local stream
Can also be used to stream moode's audio to other PCs in the house even when the main rig is off, WHILE still being able to use moode's UI to control it.

e.g. the raspberry is hardwired in the living room to a big system. Can go to the other room, on my computer, point it to the url and I can continue to listen moode's music through the pc speakers or headphones.

official docs for all the available settings/encoders/options https://www.musicpd.org/doc/user/output_...tpd_output
Reply
#4
This would be a great addition...I'd used this prior to moving to Moode just using MPD and it's really useful
Reply
#5
It's on the TODO list but not getting much priority due to work load for moOde 5. Eventually it will be implemented :-)
Enjoy the Music!
http://moodeaudio.org | http://twitter.com/MoodeAudio | http://github.com/moodeaudio
Reply


Forum Jump: