vlc/bindings/python
Rémi Denis-Courmont 1cf4ccdf71 Spell developer properly 2009-07-08 19:56:28 +03:00
..
MANIFEST.in python bindings: properly define MANIFEST.in file (patch by <kwizart@gmail.com>) 2009-05-25 12:24:02 +02:00
README Spell developer properly 2009-07-08 19:56:28 +03:00
setup.py python bindings: remove obsolete vlc_internal module 2009-05-25 16:55:35 +02:00
vlc_instance.c Parametrize macros, and pack up deref that happens anyway. 2009-03-02 17:27:13 +01:00
vlc_media.c Parametrize macros, and pack up deref that happens anyway. 2009-03-02 17:27:13 +01:00
vlc_mediacontrol.c More macro parametrization. 2009-03-02 17:27:17 +01:00
vlc_mediaplayer.c Parametrize macros, and pack up deref that happens anyway. 2009-03-02 17:27:13 +01:00
vlc_module.c Revert "python bindings: workaround for the #2257 / #2266 VLC bug (linux only ATM)" 2009-02-17 13:53:01 +01:00
vlc_position.c Trailing whitespace/tabs fixes 2008-04-23 19:40:11 +02:00
vlcglue.h More macro parametrization. 2009-03-02 17:27:17 +01:00
vlcwidget.py Update vlcwidget.py to match the new mediacontrol API 2008-05-30 12:53:13 +02:00

README

* Testing

If you try to compile the bindings from a development tree, you will
have to specify the path for VLC modules, which cannot be guessed by
the extension module (and are hardcoded for a standard installation,
i.e. /usr/lib/vlc on *NIX)

For vlc.MediaControl:
mc=vlc.MediaControl('--plugin-path /path/to/vlc/directory'.split())

For vlc.Instance:
i=vlc.Instance('--plugin-path /path/to/vlc/directory'.split())

* Skeleton generation (for developers of the module):

** For method bindings:

perl -n -e 'print "static PyObject *\nvlcInput_$2( PyObject *self, PyObject *args )\n{\n    libvlc_exception_t ex;\n    LIBVLC_TRY;\n    $1_$2( self->p_input, &ex);    LIBVLC_EXCEPT;\n    Py_INCREF( Py_None );\n    return Py_None;\n}\n\n" if /(libvlc_input)_(\w+)/ and ($2 ne "t")' ../../include/vlc/libvlc.h 

** For method table:
perl -n -e 'print "    { \"$2\", $1_$2, METH_VARARGS,\n      \"$2()\" },\n" if /^(vlcInstance)_(\w+)/' vlc_instance.c