vlc pluging with mac os

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jeanrosw
Blank Cone
Blank Cone
Posts: 13
Joined: 19 Jul 2010 13:59

vlc pluging with mac os

Postby jeanrosw » 17 Mar 2011 15:55

I have an intranet site with over 200 html pages to manage my music and video (over 1200 files). I am using vlc plugin to be able to read the music or the videos (mp3, mp4, flv, avi, vob, video_ts).
It works well on PC with IE, Firefox and Google chrome. It works also with unix mandriva and firefox.
With Mac os X, using Safari or Firefox, it works but I have the problem that when I move from one page to another, the plugin on the former page does not shut off.
So when I open another page, I have another plugins etc... I need to shut off the browser to get rid of the plugin. I am frustrated !
To be precise if I open another window I have no problem but if I open another page in the same window or in another tab I have the problem.
Something is wrong with the way Mac is handling the VLC plugin. It looks like as if, with Mac, the plugin would be attached to the browser and not to the HTML page. So if you open another page
containing the plugin, you generate another instance of the object plugin.

I have update the code to generate the plugin but the problem remains :
<SCRIPT type="text/javascript">
if(-1 != navigator.userAgent.indexOf("MSIE"))
document.write('<OBJECT id="vlc1" width="480" height="400" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"><PARAM NAME="autoplay" VALUE=false></OBJECT>');
else document.write('<EMBED id="vlc1" width="480" height="400" type="application/x-vlc-plugin" autoplay = "no"></EMBED>');

</SCRIPT>
What is wrong with Mac ? If anyone has an idea to fix the problem, I will appreciate.
Many thanks in advance

Jean

JMooney5115
New Cone
New Cone
Posts: 1
Joined: 30 Mar 2011 01:02

Re: vlc pluging with mac os

Postby JMooney5115 » 30 Mar 2011 01:15

Hello. I do not have an answer but rather a question for you. Could you post the full code for a working player? I cannot get the demo I found at http://www.videolan.org/doc/vlc-user-guide/en/ch07.html working. The video plays but none of the buttons work. I would greatly appreciate it.

doblinger
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2010 17:03

Re: vlc pluging with mac os

Postby doblinger » 04 Apr 2011 17:25

you can add code to the onbeforeunload event and stop vlc from there

jeanrosw
Blank Cone
Blank Cone
Posts: 13
Joined: 19 Jul 2010 13:59

Re: vlc pluging with mac os

Postby jeanrosw » 04 Apr 2011 21:17

To doblinger
Thanks for your answer but it does not tell me how to make the VLC plugin disapear. You can force the VLC to end playing a playlist but you cannot close it. To close it with the MAC you have to open another window. Opening another page in the same window or in an other tab does not close the VLC plugin. I have a bad opinion concerning the MAC. What works on standard computer does not on MAC. Mac is a gadget for snobs.

Thanks anyway for You helped me finding a solution. Actually the problem occurs with videos ( mp4, flv, avi, vob etc...) but not with mp3. So now whenever I use the plugin with the MAC for a video, I open a new window that I can closed when it is over.

It took me months before finding the trick. I really don't like MAC


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests