Page 1 of 1

Play VLC livestream in webbrowsers ?

Posted: 03 Jul 2020 10:59
by tarzzz99
Hello.

I've set up a PC having VLC produce a audio livestream (mp3) (from the Line In of a soundcard). Works well.

From an "outside" user PC I can play the livestream with VLC-player (Media/Open Network stream and give "http://IPnr_of_VLC_streaming_PC" ) and it also plays fine in Firefox, but NOT in IE and Chrome. What's is in Firefox that IE and Chrome don't have ?

My code on the webserver is like this:

...

<audio controls>
<source src="http://IPnr_of_VLC_streaming_PC:80" type="audio/mpeg">
</audio>

...

So, what to do to get it working in IE and Chrome webbrowsers ? (And Safari ?).

Thanks !

//tarzzz

Re: Play VLC livestream in webbrowsers ?

Posted: 03 Jul 2020 15:49
by chubinou
Hi,

You may want to setup an icecast server to act as a middleman between vlc and your clients browser

for instance you can use this tutorial:

https://medium.com/@coffmans/simple-med ... e4016f4813

Re: Play VLC livestream in webbrowsers ?

Posted: 03 Jul 2020 15:57
by tarzzz99
Thanks for the answer, but IceCast costs money. It already works for me, just now it works in VLC-player, IE and Edge, but not in Firefox and Chrome. So, I need to know how to get it to work in those browsers.