Embed VLC in html

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
devenchhillar
New Cone
New Cone
Posts: 1
Joined: 13 Jun 2019 15:48

Embed VLC in html

Postby devenchhillar » 13 Jun 2019 16:01

Hi ,

i have mpeg -2 version live recording files to play on website.

Using the https://wiki.videolan.org/Documentation:WebPlugin/ am trying to play the video.

But it doesn't play on any browser.


Code am writing
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
width="640"
height="480"
id="vlc" />


Js
<script type="text/javascript">
<!--

var id = vlc.playlist.add("Local file location", "Videoname", options);
vlc.playlist.playItem(id);
//-->
</script>


Its been 2 days am researching on it. Please help

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Embed VLC in html

Postby da2424 » 13 Aug 2019 23:03

Hi,

all browsers have dropped the support for plugins, only Internet Explorer still supports it.
For Internet Explorer, the following code will work:

Code: Select all

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" width="640" height="480" id="vlc" /> <script type="text/javascript"> <!-- function start(){ var id = vlc.playlist.add("Local file location"); vlc.playlist.playItem(id); } window.addEventListener("load", start, false); //--> </script>

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

Re: Embed VLC in html

Postby unidan » 14 Aug 2019 10:50

Hi,

You may want to wait for VLC.js, which is pending work currently.

Jen
New Cone
New Cone
Posts: 1
Joined: 12 Apr 2020 22:43

Re: Embed VLC in html

Postby Jen » 12 Apr 2020 22:46

Any update on this VLC.js?
I see no mention of one that’s not abandoned on the wiki.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests