Embedding VLC plugin in Internet Explorer 8

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
pierrick
New Cone
New Cone
Posts: 1
Joined: 06 Apr 2009 17:31

Embedding VLC plugin in Internet Explorer 8

Postby pierrick » 06 Apr 2009 18:13

Hello all,

I'm currently trying to embed vlc 0.9.8 / 0.9.9 (try both) in both firefox and internet explorer (IE7 and IE8).

After several search on google and this forum, I came up with the following HTML code :

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="400" height="300" id="vlc" events="True"> <param name="Src" value="http://192.168.2.16:8089/webplayer/mediaResources/all/video/test.mpg"></param> <param name="ShowDisplay" value="True" ></param> <param name="AutoLoop" value="no"></param> <param name="AutoPlay" value="yes"></param> <embed type="application/x-google-vlc-plugin" name="vlcfirefox" autoplay="yes" loop="no" width="400" height="300" target="http://192.168.2.16:8089/webplayer/mediaResources/all/video/test.mpg"></embed> </object>
And, I have these results :

In firefox, all green. VLC plugin is fine, and can play my videos perfectly.
In IE 7, during the first request to the page, I receive the IE message about vlc activeX control not installed / not activated (I checked the box during installation ...), so I tried to download it : axvlc.cab doesn't exist at this url : http://downloads.videolan.org/pub/video ... /axvlc.cab.
I looked after that in IE 7 profile, found vlc activeX and activated it. I relaunch IE7, but, when I'm trying to play my video, nothing happened (I have the <object>...</object> code, but no reaction).
In IE 8, same steps, but when I tried to find VLC in the activeX currently installed, nothing appears, VLC doesn't seems to exist.

So, I have the following questions :

- where can I find a current version of axvlc.cab, in order to integrate it in my <object> codebase ?
- what happened to VLC active X in Internet Explorer 8 ? where is it ?
- which steps must be done to use VLC active X after I check the box during the installation ?
- Did I do something wrong in my HTML page ? (because IE7 doesn't want to play my video, even with vlc activeX activated)

Thanks for your help,

Pierrick

Yaffle
New Cone
New Cone
Posts: 8
Joined: 03 Apr 2009 22:55

Re: Embedding VLC plugin in Internet Explorer 8

Postby Yaffle » 07 Apr 2009 07:09

1. http://hostel6.ru/tv/axvlc.cab
2. If you don't see vlc plugin in IE browser, then you need some javascript in page:
2. I don't know how to do it right because I am using javascript to insert vlc, but with this code it works.

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="400" height="300" id="vlc" events="True"> <param name="Src" value="http://192.168.2.16:8089/webplayer/mediaResources/all/video/test.mpg"></param> <param name="ShowDisplay" value="True" ></param> <param name="AutoLoop" value="no"></param> <param name="AutoPlay" value="yes"></param> <embed type="application/x-google-vlc-plugin" name="vlcfirefox" autoplay="yes" loop="no" width="400" height="300" target="http://192.168.2.16:8089/webplayer/mediaResources/all/video/test.mpg"></embed> </object> <script type='text/javascript'> window.onload = function(){ var vlc = document.getElementById('vlc'); vlc.playlist.playItem( vlc.playlist.add('http://192.168.2.16:8089/webplayer/mediaResources/all/video/test.mpg') ); }; </script>

thenilerivr
New Cone
New Cone
Posts: 1
Joined: 24 Apr 2009 21:40

Re: Embedding VLC plugin in Internet Explorer 8

Postby thenilerivr » 24 Apr 2009 21:45

Thank you so much for posting this script, it has helped me tremendously. For those wanting to include two videos, I have updated this script to work:

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="400" height="300" id="vlc1" events="True"> <param name="Src" value="rtsp://192.168.250.112:556/video1"></param> <param name="ShowDisplay" value="True" ></param> <param name="AutoLoop" value="no"></param> <param name="AutoPlay" value="yes"></param> <embed type="application/x-google-vlc-plugin" name="vlcfirefox" autoplay="yes" loop="no" width="400" height="300" target="rtsp://192.168.250.112:556/video1"></embed> </object> <script type='text/javascript'> window.onload = function(){ var vlc0 = document.getElementById('vlc0'); vlc0.playlist.playItem( vlc0.playlist.add('rtsp://192.168.250.112:554/video0') ); var vlc1 = document.getElementById('vlc1'); vlc1.playlist.playItem( vlc1.playlist.add('rtsp://192.168.250.112:556/video1') ); }; </script>
Again, lifesaver.

aaronl
New Cone
New Cone
Posts: 1
Joined: 12 Sep 2009 19:35

Re: Embedding VLC plugin in Internet Explorer 8

Postby aaronl » 12 Sep 2009 19:44

Dumb question - what file do you update the html to embed the vlc plugin in Internet Exployer & Firefox?

dgg
New Cone
New Cone
Posts: 5
Joined: 23 Jul 2009 00:22

Re: Embedding VLC plugin in Internet Explorer 8

Postby dgg » 30 Nov 2009 11:32

VLC included activex support up until version 0.8.6, I believe. At that time, you could access a cab on the videolan and therefore 'automatic' installation into IE and Firefox family browsers was fine. Thereafter support for activex seemed to stop; no cab, no activex component.

VLC 1.0.* once again contains activex support, and that's brilliant. A good decision in my opinion. What's lacking is a cab installer for the latest version. If there is one I can't find it and unfortunately my programming skills aren't up to creating one reliably.

This is an appeal for a bit of help: if someone knows how to, can they create a cab for 1.0.3 and put it somewhere we can find it? Even if videolan themselves don't want to place it on their own site, those of us who want to use it can place it on our own.

Yours hopefully, Derek

vishwas
New Cone
New Cone
Posts: 1
Joined: 21 Apr 2010 11:25

Re: Embedding VLC plugin in Internet Explorer 8

Postby vishwas » 21 Apr 2010 11:34

Am newbee to this forum however i tried the above piece of code on my web page like firefox and IE7. But in vain. I have the below queries.

In Firefox I used the below code:

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"

codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab" width="400"

height="300" id="vlc1" events="True">
<param name="Src" value="E:\Movies\test.avi"></param>
<param name="ShowDisplay" value="True" ></param>
<param name="AutoLoop" value="no"></param>
<param name="AutoPlay" value="yes"></param>
<embed type="application/x-google-vlc-plugin" name="vlcfirefox" autoplay="yes" loop="no"

width="400" height="300" target="E:/Movies/test.avi"></embed>
</object>
<script type='text/javascript'>
window.onload = function(){
var vlc0 = document.getElementById('vlc0');
vlc0.playlist.playItem( vlc0.playlist.add('E:\Movies\test.avi') );

Am trying to play a movie from my HDD but am able to hear to the audio, but the video screen shows "Video is Loading" whereas the adio is playing fine. Not sure as to what the problem is.

When the above code was used on IE7 it didn't do anything Imean no audio nor video.

Am completely a layman to this can either of you guide me I would be greatful to u.

Thanks,
Vishwas

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Embedding VLC plugin in Internet Explorer 8

Postby Ilasir » 21 Apr 2010 23:17

Code: Select all

<div id="screen"> <!--[if IE]> <object type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" id="vlc" width="720px" height="540px" events="True" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" > <param name="MRL" value="video.ext" /> <param name="volume" value="50" /> <param name="autoplay" value="false" /> <param name="loop" value="false" /> <param name="fullscreen" value="false" /> </object> <![endif]--> <!--[if !IE]><!--> <object type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" id="vlc" width="720px" height="540px" events="True" > <param name="MRL" value="video.ext" /> <param name="volume" value="50" /> <param name="autoplay" value="false" /> <param name="loop" value="false" /> <param name="fullscreen" value="false" /> </object> <!--<![endif]--> </div> <script type="text/javascript"> function mute() { vlc.audio.toggleMute(); } function play() { vlc.playlist.play(); } function stop() { vlc.playlist.stop(); } function pause() { vlc.playlist.togglePause(); } </script> <br /> </div> <div id="controls"> <input type="button" onclick="play()" value="Play" /> <input type="button" onclick="pause()" value="Pause" /> <input type="button" onclick="stop()" value="Stop" /> <input type="button" onclick="mute()" value="Mute" /> </div>
This code has never failed me.

But you need to have the video in the same folder as the html file. Gives basic functionality for IE7, IE8, Firefox and Chrome.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests