4 ms·
I've been working on something similar, just for fun (gave me an excuse to mess with Elixir and Ember). Still highly unstable though, I've spent maybe a week to
by archseer 11y ago
I've been working on something similar, just for fun (gave me an excuse to mess with Elixir and Ember). Still highly unstable though, I've spent maybe a week total on this. It's a rewrite of an older sinatra-based project I did back when html5 audio became stable enough (on my github as well).
https://github.com/archSeer/colibri https://github.com/archSeer/colibri
https://github.com/archSeer/colibri-server https://github.com/archSeer/colibri-server
- onli 11y agoDid you also run into the problem of playing .ogg's in Firefox when sending the file content via sinatra? Searching a solution for that for my own sinatra-based html5 webplayer (https://github.com/onli/music-streamer https://github.com/onli/music-streamer, not even close technically and from the UI) since a long time.
- archseer 11y agoDon't think so, it was a few years ago though :/ Might have been an incorrect content-type header? I'm looking into https://github.com/audiocogs https://github.com/audiocogs to add AAC/other codecs to browsers with no support -- that's the main feature I'm missing with all these web-players, depending on the browser, parts of my library may not play.
- onli 11y ago> Might have been an incorrect content-type header? Thought that as well, and it seems like there are multiple type headers for ogg. But none worked :/ Also not those that worked on other sites, so I thought about Content-Length and errors in my logic when to transcode. Went nowhere. > I'm looking into https://github.com/audiocogs https://github.com/audiocogs to add AAC/other codecs to browsers with no support If you can install that clientside, that is a great feature. I tried to transcode and stream stuff on the server using ffmpeg, and the big problem was content-length – when streaming I could only estimate the correct setting, leading to some songs being ended too soon. Could've changed by now ofc in the new browser version.
- archseer 11y agoYep, the work they do at Audiocogs is pretty amazing, live demo: http://audiocogs.org/codecs/ http://audiocogs.org/codecs/ The transcoding is done completely client-side.
- onli 11y agoNot quite there yet for me (small lags in the beginning), but that is already pretty great. I should integrate that instead of battling the transcoding, at least for FLAC, which seems like it will never be supported by browsers directly. Thanks for the link.
- pellaeon 11y agoownCloud Music app (https://github.com/owncloud/music https://github.com/owncloud/music) contributor here, I integrated Aurora.js with owncloud music app, and created a compatibility layer for Aurora.js and SoundManager2 (https://github.com/owncloud/music/pull/416 https://github.com/owncloud/music/pull/416). Audiocogs's ogg.js doesn't work, so I use browser's built-in decoder via SoundManager instead. And Aurora.js' doesn't seem to be maintained anymore, I tried very hard to make it build, finding that the build scripts was intended to work on OSX (version unclear), but the developer never mentions it. And even if it builds, the result doesn't really work, Aurora.js, ogg.js, flac.js, alac.js... none of them, as far as I remember. So actually in the owncloud music app we just downloaded the built js files from the demo site :-p