vlc/bindings/python
Olivier Aubert 18959e10b7 python bindings: allow to pass values in the vlc.Position constructor:
p = vlc.Position(value=16, origin=vlc.RelativePosition)
Defaults to value=0, origin=AbsolutePosition, key=MediaTime
2007-05-20 15:08:53 +00:00
..
Makefile.am bindings/python/Makefile.am: move COMPILERARG initialization in the all: target to make sure that it is defined at the right place 2007-04-27 14:25:08 +00:00
README Rename bindings/mediacontrol-python to bindings/python 2006-09-25 15:59:23 +00:00
setup-internal.py bindings/python: moved vlc.Object (access to internal framework of VLC objects) to its own vlcinternal.Object module, which is not build by default. 2007-01-05 19:14:02 +00:00
setup.py bindings/python: removed vlc.Object code from the main vlc python module. This module should now be cleanly buildable from outside the VLC tree, given the public headers and appropriate libs are available. 2007-01-05 19:15:16 +00:00
vlc_input.c python bindings: svn propset svn:keywords 2006-12-21 15:00:04 +00:00
vlc_instance.c bindings/python/vlc_instance.c: fix audio_set_volume method, closes #1195 2007-05-16 21:35:54 +00:00
vlc_internal.c bindings/python/vlc_internal: implement vlc_object_find_name support 2007-04-02 17:55:13 +00:00
vlc_internal.h bindings/python/vlc_internal.c: compatibility define for Py_ssize_t 2007-03-09 10:28:03 +00:00
vlc_mediacontrol.c python bindings: use mediacontrol_StreamInformation__free + fix 2007-05-07 13:28:49 +00:00
vlc_module.c python bindings: allow to pass values in the vlc.Position constructor: 2007-05-20 15:08:53 +00:00
vlc_position.c python bindings: allow to pass values in the vlc.Position constructor: 2007-05-20 15:08:53 +00:00
vlcglue.h python bindings: use new mediacontrol_exception_create function 2007-05-03 20:03:09 +00:00
vlcwidget.py python bindings: svn propset svn:keywords 2006-12-21 15:00:04 +00:00
vlcwrapper.py bindings/python/vlcwrapper.py: use vlcinternal module in wrapper 2007-03-09 10:27:34 +00:00

* 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 developpers 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