Page 1 of 1

Javascript API

Posted: 01 Aug 2011 19:14
by jsnop
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.

Re: Javascript API

Posted: 09 Aug 2011 03:27
by Ilasir
This information is available on the vlc wiki.

Re: Javascript API

Posted: 07 Sep 2011 21:56
by bmesander
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?