[vlc] My first plugin
YuGiOhJCJ Mailing-List
yugiohjcj-mailinglist at laposte.net
Thu Jun 23 18:00:24 CEST 2011
I have edited my plugin[1] : now I use the msg_Dbg macro (I give the string "Hello World!" in parameters).
Then I do :
$ vlc --reset-plugins-cache
$ vlc --extraintf yugiohjcjtts -Iqt
VLC media player 1.1.3 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
Warning: call to signal(13, 0x1)
[0x81418fc] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to sigaction(17, 0xb2a7e0d4, 0xb2a7e048)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
I see no window...
Maybe the problem is because I use the vlc 1.1.10 source code to create the plugin but the VLC version I use to test my plugin is 1.1.3... I will upgrade my VLC.
Have you an other idea to display a window with my plugin?
[1]
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_dialog.h>
#include <vlc_messages.h>
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
/*****************************************************************************
* Module descriptor
*****************************************************************************/
vlc_module_begin()
set_shortname( _("yugiohjcjtts") )
set_description( _("Text to speech plugin by YuGiOhJCJ <yugiohjcj at 1s.fr>") )
set_capability( "interface", 50 )
set_callbacks( Open, Close )
set_category( CAT_INTERFACE )
vlc_module_end ()
/*****************************************************************************
* Open: initialize interface
*****************************************************************************/
static int Open( vlc_object_t *p_this )
{
msg_Dbg (p_this, "Hello World!");
dialog_Question (p_this, "title", "text", "yes", "no", "cancel");
}
/*****************************************************************************
* Close: destroy interface
*****************************************************************************/
static void Close( vlc_object_t *p_this )
{
}
On Thu, 23 Jun 2011 14:31:12 +0200
Jean-Baptiste Kempf <jb at videolan.org> wrote:
>
> SOrry, I don't know.
> Try msg_Dbg and see if they show
>
> On Thu, Jun 23, 2011 at 04:10:19AM +0200, YuGiOhJCJ Mailing-List wrote :
> >
> > I have done :
> > $ vlc --extraintf yugiohjcjtts -Iqt
> >
> > And I see :
> > VLC media player 1.1.3 The Luggage (revision exported)
> > Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
> > Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
> > Warning: call to signal(13, 0x1)
> > Blocked: call to setlocale(6, "")
> > Blocked: call to sigaction(17, 0xb28ff0d4, 0xb28ff048)
> > Warning: call to rand()
> > Warning: call to rand()
> > Warning: call to rand()
> > Warning: call to rand()
> > Warning: call to rand()
> >
> > So it's good but I don't see my window. It should asks a total (Yes/No/Cancel) question through the user interface.
> >
> > Do you know how to display a window with the function below?
> >
> > VLC_API int dialog_Question (vlc_object_t *, const char *, const char *, const char *, const char *, const char *)
> >
> > On Thu, 23 Jun 2011 02:38:44 +0200
> > Jean-Baptiste Kempf <jb at videolan.org> wrote:
> >
> > > --extraintf newintf -Iqt
>
> --
> Best Regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
More information about the vlc
mailing list