1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00
vlc/bindings/python
2008-03-14 00:28:31 +01: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 python bindings: do not link with unecessary libs (spotted by courmisch) 2008-03-04 13:49:33 +01:00
TODO python bindings: begin to complete the libvlc API bindings. Cf TODO for what is left to be done. 2008-01-14 22:17:07 +00:00
vlc_input.c python bindings: begin to complete the libvlc API bindings. Cf TODO for what is left to be done. 2008-01-14 22:17:07 +00:00
vlc_instance.c Remove useless test (one more time). 2008-03-14 00:28:31 +01:00
vlc_internal.c python bindings: add a warning in the docstring of vlc_internal.c 2008-01-18 14:19:31 +00:00
vlc_internal.h More Id and permission fixes. 2008-03-02 23:27:04 +01:00
vlc_mediacontrol.c Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
vlc_mediadescriptor.c More Id and permission fixes. 2008-03-02 23:27:04 +01:00
vlc_module.c python bindings: begin to complete the libvlc API bindings. Cf TODO for what is left to be done. 2008-01-14 22:17:07 +00:00
vlc_position.c Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
vlcglue.h python bindings: begin to complete the libvlc API bindings. Cf TODO for what is left to be done. 2008-01-14 22:17:07 +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