Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
sebpiq/node-web-audio-api
Node.js implementation of Web audio API
People
Repo info
Activity
Jefferson de Andrade Santos
@jersobh
That's what I'm already doing
Streaming from the browser to a server
Chinmay Pendharkar
@notthetup
oh! streaming from the browser to the server
not from the server to the browser
Sorry I was confused.
Jefferson de Andrade Santos
@jersobh
This is what I'm already doing
but I want to play the songs from the server instead
https://central.maxhospedagem.com.br/maxcaststudio/dashboard/index.html#/
take a look at this :)
it streams to
http://138.197.46.152:8000/live
ignore the playlist
there's an audio tag that does it
Chinmay Pendharkar
@notthetup
yup
just putting the
src
of an audio tag will stream the audio from your icecast stream
Jefferson de Andrade Santos
@jersobh
it's not from, but to
the browser streams to icecast
Chinmay Pendharkar
@notthetup
ahh ok..
so you want to stream from the browser to icecast using the
webcast
Jefferson de Andrade Santos
@jersobh
Many guys said it was impossible ant
irc@freenode
but there it is :)
Chinmay Pendharkar
@notthetup
so browser (webcast ) -> websockets -> nodeserver -> icecast
Jefferson de Andrade Santos
@jersobh
now I want browser -> nodeserver || nodeserver (alone) -> icecast
But I"m just about switching to python
It has a more mature structure for this I guess
_
Chinmay Pendharkar
@notthetup
i think it's not a question of maturity
i think you're looking in the wrong place
webaudio API wasn't designed for streaming audio
webcast
is kind of a hack on top of
ScriptProcessorNode
Jefferson de Andrade Santos
@jersobh
but is there another way beside web audio api?
Chinmay Pendharkar
@notthetup
on which side? browser or server?
Jefferson de Andrade Santos
@jersobh
server's
Chinmay Pendharkar
@notthetup
on browser side there isn't much you can do.. but I believe your issue isn't on browser side
on server side there is no real webaudio api
Jefferson de Andrade Santos
@jersobh
nope, it works well
Chinmay Pendharkar
@notthetup
webaudio api is a browser api. it's supported by Chrome, FF, Edge
Jefferson de Andrade Santos
@jersobh
no problem if I can play audio on icecast :)
Chinmay Pendharkar
@notthetup
it's NOT a JS API
Jefferson de Andrade Santos
@jersobh
with node
Chinmay Pendharkar
@notthetup
so on server side, all you need is
websockets -> icecast
right?
just use some basic node streams and you should be good
Jefferson de Andrade Santos
@jersobh
yep, usually receive the stream (microphone) and mix it together
Chinmay Pendharkar
@notthetup
you can do mixing and volume changing using things like
https://www.npmjs.com/browse/keyword/audio-mixer
I've used
https://github.com/stephen/audio-mixer
I have a fork that does some extra things like gain
https://github.com/notthetup/audio-mixer
https://github.com/notthetup/soundboard/blob/master/index.js#L77
Jefferson de Andrade Santos
@jersobh
I see
I'll take a look, thank you bro
Chinmay Pendharkar
@notthetup
no problem
JomoPipi
@JomoPipi
are people still here
Deschutter
@Deschutter
Hi!