Events of vlc not getting fired on Ubuntu - Mozilla Firefox

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Sharvari
New Cone
New Cone
Posts: 6
Joined: 28 Mar 2013 22:27

Events of vlc not getting fired on Ubuntu - Mozilla Firefox

Postby Sharvari » 05 Apr 2013 18:09

Hello !!!
I am working on web-based project , on linux .Here I am using vlc mozilla web plugin, to play playlist . I would like to capture event ,once playlist is finished.I have gone through the documentation provided on following link http://wiki.videolan.org/Documentation:WebPlugin

Code: Select all

//Embedding player <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" name="video1" autoplay="no" loop="yes" width="400" heigh t="300" id="vlc"/> //Script Code <script language="Javascript"> //REGISTER EVENT function registerVLCEvent(event, handler) { if (vlc) { if (vlc.attachEvent) { vlc.attachEvent (event, handler); } else if (vlc.addEventListener) { vlc.addEventListener (event, handler, true); alert("DOM level 2"); } else { vlc["on" + event] = handler; alert("DOM level 0"); } } } //HANDLE THE EVENT function handleEvents(event) { if (!event) event = window.event; // IE if (event.target) { // Netscape based browser targ = event.target; } else if (event.srcElement) { // ActiveX targ = event.srcElement; } else { // No event object, just the value alert("Event value" + event ); return; } if (targ.nodeType == 3) // defeat Safari bug targ = targ.parentNode; alert("Event " + event.type + " has fired from " + targ ); } //Find the vlc object by id var vlc = document.getElementById("vlc"); var videopath = new Array(); videopath[0] = "Ponyo.mov"; videopath[1] = "mariot.flv"; //Adding Playlist for (var i=0;i<videopath.length;i++) { var id = vlc.playlist.add(videopath[i]); vlc.playlist.playItem(id); } //Calling event Event handler registerVLCEvent('MediaPlayerEndReached', handleEvents); //play the playlist using vlc vlc.playlist.play(); </script>

So I have implemented the same in my application , event is getting fired on mozilla firefox browser on windows platform but the problem which I have faced is that same application when i am running on linux (Ubuntu 12.04 LTS , 32bit Operating System) event is not getting fired.
What I have observed,is that events are getting registered , but only the problem is that they are not getting fired.

So where I am going wrong ??? What I suppose to do so that it will run on mozilla firefox on ubuntu platform.???
Is there any dependency with the version of linux os ???
So I am requesting you if you please find any solution for above problem, please kindly guide me in this.

Waiting for your reply.
Many Thanks.

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 43 guests