fabslab / aurora-websocket Goto Github PK
View Code? Open in Web Editor NEWWebSocket audio streaming plugin for aurora.js
WebSocket audio streaming plugin for aurora.js
Hi @fsbdev ,
I have downloaded your lib to test my websocket server.
The data arrived, but player has no sound.
I use a live aac stream, it doesn't like your server: request a file, the server send the whole file to client.
My server receive the aac stream from ffmpeg, and forward to client, so the data is very small, it only has 0.046s sound.
Do you have some idea for me?
Thanks very much.
David
Hello, thx for your work :-)
I'd like to use your project to stream some music over websocket with aurora.js but i get an error.
Whith your flac exmple, it works well.
But when I try with your server exemple and an mp3 file, i get an UnderflowError.
Do you know how i can fix this ?
Thx
Hello!
I have experimented with your code for live streaming live generated audio (synthesized on demand in realtime). However, when playing in web browser, the audio stops sooner or later, and never get resumed automatically. It there ant way to get it back playing when more data is pushed to the client?
Thanks!
I tried out the example client code + node server (with only the audioFolder
and the port
changed).
Streaming always stops at random points between a few seconds after playback starts, and about half a minute. I started logging when data events are emitted, and noticed it stops quite quickly, before sending the file. Looking at the output of top
, I saw my suspicions confirmed: the node process running the server shoots to ~100% CPU usage in less than a second, stops sending anything, and audio abruptly ends as soon as the received data has been played back on the client.
System info:
Mac OS X 10.9.5
node v0.10.30
I tried this with different files, and it seems this is actually the same issue as #1. With a FLAC file, I got no further errors on the client, but with an MP3, I also get an UnderflowError
as soon as the server hits 100% and stops sending anything.
P.S. Thank you for the great work so far, without this repo existing I might have lost the vision for my project ๐
Hi,
I have used your code to enable mp3 live streaming using FFMPEG
It is working as well as using AAC.
However, PCM seems to fail as well as any other format I was trying to use under IOS Safari.
Do you know maybe how to overcome this issue?
Thank You
Would be great to see this distributed as an NPM package, at the moment there is no way to use this package with dependency managers. Not even Bower.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.