Play VLC livestream in webbrowsers ?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
tarzzz99
New Cone
New Cone
Posts: 6
Joined: 03 Jul 2020 10:35

Play VLC livestream in webbrowsers ?

Postby tarzzz99 » 03 Jul 2020 10:59

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

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Play VLC livestream in webbrowsers ?

Postby chubinou » 03 Jul 2020 15:49

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

tarzzz99
New Cone
New Cone
Posts: 6
Joined: 03 Jul 2020 10:35

Re: Play VLC livestream in webbrowsers ?

Postby tarzzz99 » 03 Jul 2020 15:57

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests