[vlc] Re: mozilla plugin & javascript problems
Damien Fouilleul
Damien.Fouilleul at laposte.net
Sun Apr 23 19:46:35 CEST 2006
there has indeed been some changes in the mozilla plugin (0.8.5-test3)
regarding scripting; as well as supporting XP-COM (the legacy netscape
scripting engine), the mozilla plugin now supports the new cross browser
scripting engine introduced for firefox 1.0, and supported by safari and
most other browsers (except IE, obviously). The browser should be free
from using which scripting engine it wants, so in theory, they should
not clash. But, there has been reports just like yours.
Anyway, if you delete the vlcintf.xpt, that should disable the XP-COM.
if you've seen those problems before 0.8.5-test3, then I cannot explain
them, as the mozilla code has been mostly frozen up until now.
BTW: to solve this problem, do you need to clear the cache every time
you use the plugin ?, or you only need to clear it until the plugin
script works and, then no longer need to clear the cache ever.
harisson wrote:
> Hello,
>
> I have some troubles with the mozilla-vlc plugin and javascript
> functions :
>
> The javascript console says sometimes "document.flux.play is not a
> function" or "document.flux.stop is not a function" (below the sample
> code)
>
> To avoid these errors, i have to clear the browser cache 3/4 times and
> make about:plugins.
>
> These bugs/errors appear with all mozilla browsers
> suite/seamonkey/firefox on both win/linux using vlc 0.8.5-*
>
> Where does this strange behaviour of these vlc javascript functions
> come from ? And is there a way to fix this in the html/javascript code ?
>
> [...]
> } else { //vlc mozilla plugin
> document.writeln('<embed
> type="application/x-vlc-plugin" name="flux" autoplay="no" loop="yes"
> width="400" height="336" target="<%= url %>" /> \
> <p><a href="#"
> onclick="javascript:document.flux.play();return false">Play flux</a> \
> || <a href="#"
> onclick="javascript:document.flux.stop();return false">Stop
> flux</a></p>');
>
> }
> [...]
>
> best regards. harisson
>
>
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list