|
Revision 07a52db97ca6689ecc846818cfb681dd9b3c02e3, 0.9 kB
(checked in by Olivier Aubert <olivier.aubert@liris.cnrs.fr>, 2 years ago)
|
Rename bindings/mediacontrol-python to bindings/python
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
* Testing |
|---|
| 2 |
|
|---|
| 3 |
If you try to compile the bindings from a development tree, you will |
|---|
| 4 |
have to specify the path for VLC modules, which cannot be guessed by |
|---|
| 5 |
the extension module (and are hardcoded for a standard installation, |
|---|
| 6 |
i.e. /usr/lib/vlc on *NIX) |
|---|
| 7 |
|
|---|
| 8 |
For vlc.MediaControl: |
|---|
| 9 |
mc=vlc.MediaControl('--plugin-path /path/to/vlc/directory'.split()) |
|---|
| 10 |
|
|---|
| 11 |
For vlc.Instance: |
|---|
| 12 |
i=vlc.Instance('--plugin-path /path/to/vlc/directory'.split()) |
|---|
| 13 |
|
|---|
| 14 |
* Skeleton generation (for developpers of the module): |
|---|
| 15 |
|
|---|
| 16 |
** For method bindings: |
|---|
| 17 |
|
|---|
| 18 |
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 |
|---|
| 19 |
|
|---|
| 20 |
** For method table: |
|---|
| 21 |
perl -n -e 'print " { \"$2\", $1_$2, METH_VARARGS,\n \"$2()\" },\n" if /^(vlcInstance)_(\w+)/' vlc_instance.c |
|---|