News for hackers. Stuff that matters.
Re:Show HN: Musikcube, a terminal-based music player, librar... by pcthrowaway on Wednesday July 26, 2017 @04:24AM (#14854449)
If I have a musikcube server running on my network, can I stream music from my web browser to it?
Re:Show HN: Musikcube, a terminal-based music player, librar... by _avatar on Wednesday July 26, 2017 @04:34AM (#14854473)
Not currently; the only client right now is a native Android app[1]. However, the server[2] uses vanilla HTTP (for audio) and WebSockets (for data and eventing), so it should be relatively straight forward to build a web frontend.

[1] https://github.com/clangen/musikcube/tree/master/src/musikdr...

[2] https://github.com/clangen/musikcube/wiki/remote-api-documen...

Re:Show HN: Musikcube, a terminal-based music player, librar... by pcthrowaway on Wednesday July 26, 2017 @05:26AM (#14854719)
Even with a web frontend, I'm not clear on how I could get the audio from, say, youtube to go over the websocket instead of to the typical playback device. With something like Pulseaudio, I believe it's possible to stream to a remote host, but then musikcube would need a pulseaudio compatibility layer
Re:Show HN: Musikcube, a terminal-based music player, librar... by cosier on Wednesday July 26, 2017 @06:57AM (#14855127)
You would have to download the youtube audio first (eg. using youtube-dl -x) then add that to your Musikcube library.

Then a web frontend could be served served audio over HTTP and play that back on the remote client.

Pulseaudio is system based audio, whereas here we are just talking about local audio to the musickube app.

Interesting idea to add pulseaudio compatability though..