how to embed a vlc live streaming to a website?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
lexuan
New Cone
New Cone
Posts: 1
Joined: 08 Jul 2019 04:10

how to embed a vlc live streaming to a website?

Postby lexuan » 08 Jul 2019 04:17

I am currently working on a project to do video live streaming by using the Raspberry Pi camera. Currently, the video will stream to the vlc player through a 4G network. If I want to embed this vlc video live stream on to my website, what are the steps that can guide me to embed it?

Appreciate for the help

unidan
Developer
Developer
Posts: 1494
Joined: 25 Mar 2018 01:00

Re: how to embed a vlc live streaming to a website?

Postby unidan » 08 Jul 2019 11:06

Hi, if you want to embed VLC in your webpage, you need to wait for VLC.js (~2/3 months maybe)

mafatik
New Cone
New Cone
Posts: 5
Joined: 31 Jul 2019 11:27

Re: how to embed a vlc live streaming to a website?

Postby mafatik » 05 Aug 2019 13:59

You need to run vlc $path_to_fle --sout '#standard{mux=,access=http,dst=}' in console where mux=mp4 or other format, dst=localhost:8080 or other host url. Then in html paste

Code: Select all

<video controls> <source src="http://localhost:8080" type="video/mp4"> </video>


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests