notandy / ympd

Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS
http://www.ympd.org
GNU General Public License v2.0
523 stars 144 forks source link

HTTP Streaming? #16

Open ijaaz opened 10 years ago

ijaaz commented 10 years ago

I am wondering if I could use ympd to stream through mpd's built-in http streaming?

notandy commented 10 years ago

do you mean streaming from the mpd back end to ympd front end via http? Should be possible to implement, even without fiddling with C :) Right now I'am quite busy with my work till mid of june... but I would gladly accept PRs

ijaaz commented 10 years ago

Exactly; I live most of my internet life at school, and we mostly use macs, and macs now use that pesky signature thing, which means that I cannot use Theremin. So I'd like to use my Linux as a streaming device like Spotify, and as you guys use a modern UI, and don't require Apache (using a linux through chroot has issues), and have full functionality... So just adding that functionality should make using other devices away from my Arch a lot easier :).

I also cannot get mpod (iPhone app for mpd) to work, at least for http streaming, so just using ympd instead seems like a fine solution.

On Fri, May 9, 2014 at 7:06 AM, Andy notifications@github.com wrote:

do you mean streaming from the mpd back end to ympd front end via http? Should be possible to implement, even without fiddling with C :) Right now I'am quite busy with my work till mid of june... but I would gladly accept PRs

— Reply to this email directly or view it on GitHubhttps://github.com/notandy/ympd/issues/16#issuecomment-42655028 .

parabelboi commented 10 years ago

i already have done this change for myself, the stream url is hardcoded though. it should be possible to get this information from mpd. I also added volume control and start/stop for local playback. sorry for not providing that changes (yet)

ijaaz commented 10 years ago

Tell me when it is ready for use; I eagerly await further development :)

On Sat, May 24, 2014 at 11:29 AM, parabelboi notifications@github.comwrote:

i already have done this change for myself, the stream url is hardcoded though. it should be possible to get this information from mpd. I also added volume control and start/stop for local playback. sorry for not providing that changes (yet)

— Reply to this email directly or view it on GitHubhttps://github.com/notandy/ympd/issues/16#issuecomment-44090584 .

parabelboi commented 10 years ago

Hi mtello, please have a look at https://github.com/parabelboi/ympd/tree/expire1 As said, you'd need to change the stream url to yours, before compiling: Have a look at https://github.com/parabelboi/ympd/compare/expire1 for the changes. Change http://mpd:8000/mpd.ogg with your URL. If you are familiar with html and like to speed up things: we'd need configurable stream url (maybe similar to mpd's server-settings) and some visual distinction between mpd-controls and stream-controls.

SuperBFG7 commented 9 years ago

I don't understand how mpd.js can access variables passed to ympd, if I get that I think it should be fairly easy to make it configurable

btw. to make it work on mobile safari you need to add a load() before play() and the mpd.ogg is optional, I think modern browsers should be able to read the stream-type from the http header mpd sends.

see https://github.com/notandy/ympd/compare/master...SuperBFG7:local_play?expand=1 for an updated version