Javascript API

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jsnop
New Cone
New Cone
Posts: 4
Joined: 01 Aug 2011 19:01

Javascript API

Postby jsnop » 01 Aug 2011 19:14

I am looking for some help on how to register the appropriate event handlers and listeners to work with the VLC media player inside of a webpage using the Mozilla Firefox 5.0 browser. I have embedded the player using the following code and I have spent hours on this forum looking for the answer.
<embed type="application/x-vlc-plugin"
name="vlc" pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2"
width="100%" height="500"
id="vlc">
</embed>

I want the page to be able to “listen” for the 'MediaPlayerEndReached' event and then fire a javascript function that I have working correctly to play the next item in the playlist and loop that playlist when it ends. I am having trouble finding any good documentation on how to do this within javascript.

Any help would be appreciated. Thanks.

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

Re: Javascript API

Postby Ilasir » 09 Aug 2011 03:27

This information is available on the vlc wiki.

bmesander
New Cone
New Cone
Posts: 9
Joined: 07 Sep 2011 21:45

Re: Javascript API

Postby bmesander » 07 Sep 2011 21:56

I have the same issue on win7/ie9, and the code on the wiki does not work for me.

This thread offers some clues: viewtopic.php?f=16&t=77515

However, the suggested workaround of dom level 0 does not work for me either.

I am using a plugin that is partly based on VLC 1.0.2 - does anyone know if things in this area were fixed for certain in later versions of VLC, and thus I should integrate my changes with a newer VLC?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests