-
Notifications
You must be signed in to change notification settings - Fork 185
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
Usage on server-side (node) only for decoding #96
Comments
Yes, it's already possible and supported to use Aurora in Node. Just install and require the |
Thank you for the information! I have the slight problem with installing |
Hmm, what's your environment? It says here that on Debian/Ubuntu you need to install ALSA:
|
After googling around a bit, it seems to be related to the node version I'm using (0.11.x), which is what |
Oh that makes sense. Node 0.11 breaks a lot of native modules. Not really sure what to suggest then. I don't really want to remove the dependency from package.json since I think we'd get complaints from people confused about why it doesn't work when they try to play audio. The real solution is to wait until node-speaker updates for Node 0.11, or use a stable version of node (current is 0.10.32). If you must use 0.11 now, you could try installing via git and manually building by running |
I understand, that'd not make a lot of sense to most users. I just tried building with I then renamed require './src/devices/node-speaker' So I'm wondering if it is a good idea / makes sense to just remove this line as I'm manually building anyways, or if I can rely on the line @supported: Speaker? inside Thank you for the information so far, it's been very helpful. |
Yeah that device won't be used since the line above where it tries to require the |
|
@jussi-kalliokoski Does npm install |
Yep, it just makes it non-fatal if it fails to install.
|
Cool, let's do that. |
OK, just published v0.4.3 with this change. |
I'm wondering if it's possible to only use the decoding features of Aurora inside a node process, so far I've only seen node being in use for building the browserified version yourself.
If we had a way of using only the decoding features of Aurora, it and its demuxers/decoders could run inside a server and support streaming different audio files as one audio stream in one common re-encoded format.
While I like the discussion in #14 and especially the repo fsbdev/aurora-websocket, they won't really work all too well for FLAC files (>= 10MB per song), as we just stream the raw files and decode them on the client.
Another big advantage would be that the decoding would be decoupled from the client and could never interfere with the GUI, and we wouldn't even need to use aurora inside the browser, as long as a HTML5 supported audio format is streamed.
The text was updated successfully, but these errors were encountered: