[winswitch] Off Topic: How to stream audio from a linux app to a browser

tzahi ml tzahi.ml at gmail.com
Thu Oct 20 11:36:11 BST 2016


Tried that but there is a 3 sec delay (which is better than simply
icecasting but still)... good to know though.
Wish there was a way to get it to 1 sec. that would be totally acceptable.
All these are transcoding the sound into mp3/ogg and this requires some
kind of buffering which takes at least 3 sec.
The only way i see is to send the data as is to the browser and play it.
But, that sounds like scifi to me.
Xpra html5 could encode the audio in the h264 stream when it will be
available.
Seems like the only way to get good results.


On Wed, Oct 19, 2016 at 8:46 AM, Timothy Hobbs via shifter-users <
shifter-users at lists.devloop.org.uk> wrote:

> If you happen to use pulseaudio, then you could try adding a "stream"
> sink. I have not tested this, but here is an example:
>
> https://gist.github.com/djmaze/5234008
>
> On 10/13/16 14:09, tzahi ml via shifter-users wrote:
> > Hi,
> > Sorry for the off topic but I cannot seem to find and answer online.
> > I am trying to figure out how to send real time audio from a linux
> program
> > (pulseaudio?) to a web browser (web audio api?) without a plugin. I could
> > not find guides or anything close. I tried shoutcast etc... but they are
> > very laggy and defeats the point.
> >
> > Can someone point me in the right direction?
> > (maybe from the html5 team)
> >
> > Thanks!
> > _______________________________________________
> > shifter-users mailing list
> > shifter-users at lists.devloop.org.uk
> > http://lists.devloop.org.uk/mailman/listinfo/shifter-users
>
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
>



More information about the shifter-users mailing list