[vlc-devel] Re: VLC checking for external plugins when built with --disable-plugins

Dermot McGahon dermot at dspsrv.com
Wed Mar 16 08:00:52 CET 2005


On Tue, 15 Mar 2005 09:42:37 +0000, Damien Fouilleul  
<damien.fouilleul at laposte.net> wrote:

>> For what it's worth, this functionality would be useful for a  
>> self-contained Mozilla plugin too.  A similar functionality may also be  
>> useful for reading VLC preferences.  i.e. Should a standalone ActiveX  
>> plugin read an installed VLC's normal preferences file, or not?
>>
>>
> Absolutely, although for preferences it is still possible to override  
> them (albeit in javascripting)

Whoa. This can be done with the mozilla plugin?

There is a long-standing bug that the mozilla plugin doesn't respect
the loop parameter. Also a problem with ALSA, it always chooses OSS.
Also no capability to specify LOOP=NO.

Trivial patches for these problems follows, but I would be interested
in a generic way to change .vlcrc parameters from Javascript.


Dermot.
--


Index: vlcshell.cpp
===================================================================
--- vlcshell.cpp        (revision 10060)
+++ vlcshell.cpp        (working copy)
@@ -73,7 +73,7 @@
  #include "vlcplugin.h"

  #if USE_LIBVLC
-#   define WINDOW_TEXT "(no picture)"
+#   define WINDOW_TEXT "(Please wait ...)"
  #else
  #   define WINDOW_TEXT "(no libvlc)"
  #endif
@@ -83,7 +83,7 @@
  ******************************************************************************/
  #ifdef XP_UNIX
  #   define VOUT_PLUGINS "xvideo,x11,dummy"
-#   define AOUT_PLUGINS "oss,dummy"
+#   define AOUT_PLUGINS "alsa,oss,dummy"

  static void Redraw( Widget w, XtPointer closure, XEvent *event );
  #endif
@@ -274,6 +274,7 @@
          return NPERR_GENERIC_ERROR;
      }

+
      {
  #ifdef XP_MACOSX
          char *home_user;
@@ -345,8 +346,8 @@
      VLC_VariableSet( p_plugin->i_vlc, "conf::intf", value );
      value.psz_string = VOUT_PLUGINS;
      VLC_VariableSet( p_plugin->i_vlc, "conf::vout", value );
-    value.psz_string = AOUT_PLUGINS;
-    VLC_VariableSet( p_plugin->i_vlc, "conf::aout", value );
+    //value.psz_string = AOUT_PLUGINS;
+    //VLC_VariableSet( p_plugin->i_vlc, "conf::aout", value );

  #else
      p_plugin->i_vlc = 1;
@@ -402,6 +403,11 @@
                  value.b_bool = VLC_TRUE;
                  VLC_VariableSet( p_plugin->i_vlc, "conf::fullscreen",  
value );
              }
+            else if (!strcmp (argn[i], "no" ) )
+            {
+                value.b_bool = VLC_FALSE;
+                VLC_VariableSet( p_plugin->i_vlc, "conf::fullscreen",  
value );
+            }
          }
          else if( !strcmp( argn[i], "mute" ) )
          {

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list