vlc/bindings/python.git
2 months agoEnhanced footer.py (#60) master
mrJean1 [Sun, 15 Jul 2018 21:19:14 +0000 (17:19 -0400)]
Enhanced footer.py (#60)

python: Added `-v` and `--version` command line option

It prints `vlc.py`, `libvlc`, Python and O/S versions.

2 months agopython: translate Enum names in docs
Olivier Aubert [Fri, 13 Jul 2018 13:19:30 +0000 (15:19 +0200)]
python: translate Enum names in docs

Closes #52

2 months agoPython: update distribution
Olivier Aubert [Fri, 13 Jul 2018 09:59:47 +0000 (11:59 +0200)]
Python: update distribution

2 months agopython: only exclude 2.2 version from CI
Olivier Aubert [Fri, 13 Jul 2018 09:05:02 +0000 (11:05 +0200)]
python: only exclude 2.2 version from CI

2.2 was the last release supporting only python2.

2 months agoMerge pull request #56 from cclauss/patch-1
Olivier Aubert [Fri, 13 Jul 2018 08:55:23 +0000 (10:55 +0200)]
Merge pull request #56 from cclauss/patch-1

Add automated testing via Travis CI and flake8

2 months agoRemove allow_failures
cclauss [Thu, 12 Jul 2018 10:45:50 +0000 (12:45 +0200)]
Remove allow_failures

2 months agoflake8 . --exclude=./generated,./generator/templates
cclauss [Thu, 12 Jul 2018 10:43:58 +0000 (12:43 +0200)]
flake8 . --exclude=./generated,./generator/templates

Exclude the generated code also

2 months agoMerge branch 'master' of github.com:oaubert/python-vlc
Olivier Aubert [Wed, 11 Jul 2018 21:51:23 +0000 (23:51 +0200)]
Merge branch 'master' of github.com:oaubert/python-vlc

2 months agopython: define MediaDiscovererDescription struct
Olivier Aubert [Tue, 10 Jul 2018 22:27:30 +0000 (00:27 +0200)]
python: define MediaDiscovererDescription struct

2 months agoPython: update bindings from 3.0.3 includes
Olivier Aubert [Tue, 10 Jul 2018 21:23:46 +0000 (23:23 +0200)]
Python: update bindings from 3.0.3 includes

2 months agoDefine basestring, unicode using feature detection
cclauss [Tue, 10 Jul 2018 15:00:57 +0000 (17:00 +0200)]
Define basestring, unicode using feature detection

Use the Python porting best practice [use feature detection instead of version detection](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection) to define basestring() and unicode() in order to placate flake8.

2 months agoDefine unicode() in Python 3
cclauss [Tue, 10 Jul 2018 14:52:16 +0000 (16:52 +0200)]
Define unicode() in Python 3

2 months agoDefine unicode() in Python 3
cclauss [Tue, 10 Jul 2018 14:51:03 +0000 (16:51 +0200)]
Define unicode() in Python 3

2 months agoRemove sorting workaround for Python < (2.4)!
cclauss [Tue, 10 Jul 2018 14:48:52 +0000 (16:48 +0200)]
Remove sorting workaround for Python < (2.4)!

2 months agoflake8 . --exclude=./generator/templates
cclauss [Tue, 10 Jul 2018 14:27:51 +0000 (16:27 +0200)]
flake8 . --exclude=./generator/templates

2 months agoAdd automated testing via Travis CI and flake8
cclauss [Mon, 9 Jul 2018 11:13:34 +0000 (13:13 +0200)]
Add automated testing via Travis CI and flake8

Travis CI can be used to do automated testing on all pull requests before they are reviewed and merged. This service is free to open source projects like this one. For this to work, @oaubert would need to turn on the switch for this repo at https://www.travis-ci.com/oaubert (login via GitHub credentials)

2 months agoMerge pull request #54 from cclauss/patch-1
Olivier Aubert [Sat, 7 Jul 2018 21:13:33 +0000 (23:13 +0200)]
Merge pull request #54 from cclauss/patch-1

print() is a function in Python 3

2 months agoprint() is a function in Python 3
cclauss [Sun, 1 Jul 2018 12:46:38 +0000 (14:46 +0200)]
print() is a function in Python 3

3 months agoFix for Python 3 bytes vs str issue.
mrJean1 [Sun, 10 Jun 2018 19:45:51 +0000 (15:45 -0400)]
Fix for Python 3 bytes vs str issue.

3 months agoCorrection, command line option -adjust enabled in cocoavlc.py since
mrJean1 [Mon, 4 Jun 2018 20:47:50 +0000 (16:47 -0400)]
Correction, command line option -adjust enabled in cocoavlc.py since
VideoAdjustOption DOES work for VLC 2 and python-vlc 2.  The problem
was line 338.

3 months agoAdded -logo option to cocoavlc command line. Options -adjust, -logo
mrJean1 [Mon, 4 Jun 2018 20:17:18 +0000 (16:17 -0400)]
Added -logo option to cocoavlc command line.  Options -adjust, -logo
and -marquee are only available with VLC 3+ and python-vlc 3+ since the
VideoAdjust-, VideoLogo- and VideoMarqueeOption don’t work otherwise.
Changed function _dot2int in footer.py to work around 4-digit version
numbers.

3 months agoFixed typo.
mrJean1 [Sun, 3 Jun 2018 15:23:11 +0000 (11:23 -0400)]
Fixed typo.

3 months agoUpdated examples/cocoavlc.py, requiring PyCocoa 18.6.2 or newer.
mrJean1 [Sat, 2 Jun 2018 21:40:32 +0000 (17:40 -0400)]
Updated examples/cocoavlc.py, requiring PyCocoa 18.6.2 or newer.

4 months agopython: fix struct definitions
Olivier Aubert [Mon, 14 May 2018 17:15:21 +0000 (19:15 +0200)]
python: fix struct definitions

Closes #50

4 months agopython: fix unserializing of title/chapter descriptions
Olivier Aubert [Mon, 14 May 2018 15:58:34 +0000 (17:58 +0200)]
python: fix unserializing of title/chapter descriptions

4 months agopython: Update cocoavlc.py example in versioned dir
Olivier Aubert [Fri, 11 May 2018 16:28:53 +0000 (18:28 +0200)]
python: Update cocoavlc.py example in versioned dir

4 months agoMerge remote-tracking branch 'github/master'
Olivier Aubert [Fri, 11 May 2018 16:26:35 +0000 (18:26 +0200)]
Merge remote-tracking branch 'github/master'

4 months agopython: fix libvlc_video_new_viewpoint return value conversion
Olivier Aubert [Fri, 11 May 2018 16:25:21 +0000 (18:25 +0200)]
python: fix libvlc_video_new_viewpoint return value conversion

Closes #48

4 months agoNew -marquee option, set menu title and requires PyCocoa 18.4.28.
mrJean1 [Mon, 30 Apr 2018 17:44:58 +0000 (13:44 -0400)]
New -marquee option, set menu title and requires PyCocoa 18.4.28.

4 months agoInitial release from project PyCocoa.
mrJean1 [Fri, 27 Apr 2018 00:15:57 +0000 (20:15 -0400)]
Initial release from project PyCocoa.

7 months agoFix libvlccore loading on MacOS X
Olivier Aubert [Mon, 19 Feb 2018 17:14:11 +0000 (18:14 +0100)]
Fix libvlccore loading on MacOS X

Closes #37

7 months agoMerge pull request #39 from mrJean1/patch-1
Olivier Aubert [Mon, 19 Feb 2018 16:44:20 +0000 (17:44 +0100)]
Merge pull request #39 from mrJean1/patch-1

Update header.py to fix libvlccode.dylib loading on MacOS X

7 months agoUpdate header.py
mrJean1 [Wed, 14 Feb 2018 17:42:52 +0000 (12:42 -0500)]
Update header.py

On macOS, force loading of libvlccore.dylib before libvlc.dylib, required since VLC 2.2.8+.  Tested with VLC 2.2.8, 2.2.6 and 2.2.2 on macOS 10.13.3 High Sierra.

8 months agopython: generate versioned module for libvlc 3.0
Olivier Aubert [Thu, 4 Jan 2018 22:35:00 +0000 (23:35 +0100)]
python: generate versioned module for libvlc 3.0

8 months agopython binding: fix docstring regexp + add a string to free
Olivier Aubert [Thu, 4 Jan 2018 22:34:00 +0000 (23:34 +0100)]
python binding: fix docstring regexp + add a string to free

11 months agopython bindings: fix description
Olivier Aubert [Sun, 22 Oct 2017 19:31:46 +0000 (21:31 +0200)]
python bindings: fix description

11 months agoCommit generate dist files
Olivier Aubert [Sun, 22 Oct 2017 19:30:00 +0000 (21:30 +0200)]
Commit generate dist files

so that users can clone the git repo and do a
python setup.py install
from the generated/2.2 dir.

11 months agopython bindings: fix package description
Olivier Aubert [Wed, 11 Oct 2017 13:32:11 +0000 (15:32 +0200)]
python bindings: fix package description

Do not repeat short description in the long descriptio. This fixes a
lintian warning when producing debian packages.

11 months agoGenerate an appropriate PyPI installer package for the generated module
Olivier Aubert [Tue, 10 Oct 2017 16:56:23 +0000 (18:56 +0200)]
Generate an appropriate PyPI installer package for the generated module

Closes #15

11 months agopython bindings: refactor, move template files to their own directory
Olivier Aubert [Tue, 10 Oct 2017 10:57:32 +0000 (12:57 +0200)]
python bindings: refactor, move template files to their own directory

11 months agopython bindings: configure logging module when running standalone
Olivier Aubert [Thu, 28 Sep 2017 20:09:15 +0000 (22:09 +0200)]
python bindings: configure logging module when running standalone

11 months agoPython bindings: update generated bindings for 2.2 and dev. versions
Olivier Aubert [Thu, 28 Sep 2017 19:16:01 +0000 (21:16 +0200)]
Python bindings: update generated bindings for 2.2 and dev. versions

11 months agopython bindings: update generator version number
Olivier Aubert [Thu, 28 Sep 2017 19:15:19 +0000 (21:15 +0200)]
python bindings: update generator version number

11 months agopython-vlc: allow to specify lib and plugin path
Olivier Aubert [Mon, 25 Sep 2017 12:57:13 +0000 (14:57 +0200)]
python-vlc: allow to specify lib and plugin path

Using environment variables PYTHON_VLC_LIB_PATH and PYTHON_VLC_MODULE_PATH.
This will help experimenting with various setups.

Closes #31

12 months agopython bindings generator: handle bitshifted chars in enums
Olivier Aubert [Tue, 19 Sep 2017 09:57:09 +0000 (11:57 +0200)]
python bindings generator: handle bitshifted chars in enums

17 months agoGtk3 example
Olivier Aubert [Mon, 10 Apr 2017 10:18:58 +0000 (12:18 +0200)]
Gtk3 example

17 months agoRename gtkvlc.py to gtk2vlc.py (using old pygtk2 version)
Olivier Aubert [Mon, 10 Apr 2017 09:33:50 +0000 (11:33 +0200)]
Rename gtkvlc.py to gtk2vlc.py (using old pygtk2 version)

18 months agoPython bindings: fix regexp to handle deprecated APIs
Olivier Aubert [Mon, 20 Mar 2017 20:24:38 +0000 (21:24 +0100)]
Python bindings: fix regexp to handle deprecated APIs

Closes #29

18 months agopython: generate a new version of the bindings
Olivier Aubert [Wed, 1 Mar 2017 17:06:56 +0000 (18:06 +0100)]
python: generate a new version of the bindings

They are generated from a fixed version of the VLC dev tree (commit
cb1e307b4bac50aa650063fc39452ecae02ed867) that fixes parameter names in
include files.

Closes #27

18 months agopython: conditional compilation based on presence of include files
Olivier Aubert [Wed, 1 Mar 2017 17:05:25 +0000 (18:05 +0100)]
python: conditional compilation based on presence of include files

Add some explanation messages in the Makefile and the README file to
specify what is expected.

Closes #26

18 months agopython-vlc: Fix ctypes conversion for pointers
Olivier Aubert [Fri, 24 Feb 2017 22:40:13 +0000 (23:40 +0100)]
python-vlc: Fix ctypes conversion for pointers

This makes many callbacks work correctly. Thanks to Daniël van Adrichem
@daniel5gh for the fix and tests.

Closes #17

20 months agoMake wxvlc example cross-platform
Olivier Aubert [Tue, 3 Jan 2017 14:21:22 +0000 (15:21 +0100)]
Make wxvlc example cross-platform

Closes #23

21 months agoAdd support for libvlc_video_viewpoint API
Olivier Aubert [Tue, 29 Nov 2016 09:27:16 +0000 (10:27 +0100)]
Add support for libvlc_video_viewpoint API

23 months agoGenerate 2.2 specific bindings (in generated/2.2)
Olivier Aubert [Fri, 7 Oct 2016 10:11:27 +0000 (12:11 +0200)]
Generate 2.2 specific bindings (in generated/2.2)

23 months agoSupport new APIs (rd_descriptions and renderer)
Olivier Aubert [Fri, 7 Oct 2016 09:56:48 +0000 (11:56 +0200)]
Support new APIs (rd_descriptions and renderer)

Untested code, waiting for unit tests and user feedback

23 months agoFix typo in tracks_get override.
Olivier Aubert [Fri, 7 Oct 2016 09:48:15 +0000 (11:48 +0200)]
Fix typo in tracks_get override.

Fixes #16

2 years agoUpdate generated VLC
Olivier Aubert [Tue, 6 Sep 2016 10:17:03 +0000 (12:17 +0200)]
Update generated VLC

2 years agoFix struct type names
Olivier Aubert [Tue, 6 Sep 2016 10:15:55 +0000 (12:15 +0200)]
Fix struct type names

See b0984a632f285643013c709b51a72aa98a3e53c4 in VLC

2 years agoGet directory names from environment
vaksick [Sun, 4 Sep 2016 14:13:32 +0000 (16:13 +0200)]
Get directory names from environment

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoUpdate python generator+bindings to match latest libvlc API changes
Olivier Aubert [Tue, 19 Jul 2016 10:45:52 +0000 (12:45 +0200)]
Update python generator+bindings to match latest libvlc API changes

2 years agoSpecify plugin path through the environment variable
Olivier Aubert [Fri, 15 Apr 2016 15:15:14 +0000 (17:15 +0200)]
Specify plugin path through the environment variable

The command line option has long been removed

2 years agoGenerate new vlc.py bindings
Olivier Aubert [Fri, 15 Apr 2016 14:51:44 +0000 (16:51 +0200)]
Generate new vlc.py bindings

2 years agoAllow to pass options to vlc.py invoked as script
Jean Brouwers [Fri, 15 Apr 2016 14:45:25 +0000 (16:45 +0200)]
Allow to pass options to vlc.py invoked as script

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoParse LIBVLC_VERSION
Jean Brouwers [Fri, 15 Apr 2016 14:41:13 +0000 (16:41 +0200)]
Parse LIBVLC_VERSION

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoImprove enum parsing
Jean Brouwers [Fri, 15 Apr 2016 14:36:51 +0000 (16:36 +0200)]
Improve enum parsing

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoHandle expressions in enum values
Jean Brouwers [Thu, 7 Apr 2016 21:47:24 +0000 (23:47 +0200)]
Handle expressions in enum values

See libvlc_MediaPlayerCorked for instance

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoOn MacOS X search for plugins in modules/ and plugins/ directories
Jean Brouwers [Thu, 7 Apr 2016 14:11:41 +0000 (16:11 +0200)]
On MacOS X search for plugins in modules/ and plugins/ directories

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoUpdate generated VLC
Olivier Aubert [Thu, 7 Apr 2016 14:08:42 +0000 (16:08 +0200)]
Update generated VLC

2 years agoDefine conversion items and blacklist a function
Olivier Aubert [Thu, 7 Apr 2016 13:51:28 +0000 (15:51 +0200)]
Define conversion items and blacklist a function

2 years agoSpecify caught exception
Olivier Aubert [Thu, 7 Apr 2016 13:50:48 +0000 (15:50 +0200)]
Specify caught exception

2 years agoSpecify encoding
Olivier Aubert [Thu, 7 Apr 2016 13:50:36 +0000 (15:50 +0200)]
Specify encoding

Some docstrings contain UTF8 characters

2 years agoConvert callbacks doc to epydoc format
Olivier Aubert [Mon, 1 Feb 2016 15:21:20 +0000 (16:21 +0100)]
Convert callbacks doc to epydoc format

2 years agoTkinter example for VLC Python bindings
Patrick Fay [Tue, 24 Nov 2015 16:00:19 +0000 (17:00 +0100)]
Tkinter example for VLC Python bindings

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoFix packaging
Olivier Aubert [Thu, 5 Nov 2015 23:16:24 +0000 (00:16 +0100)]
Fix packaging

2 years agoAdd git.videolan.org link
Olivier Aubert [Thu, 5 Nov 2015 23:00:00 +0000 (00:00 +0100)]
Add git.videolan.org link

2 years agoRewrite README as restructured text
Olivier Aubert [Thu, 5 Nov 2015 22:54:52 +0000 (23:54 +0100)]
Rewrite README as restructured text

2 years agoUpdate README
Olivier Aubert [Thu, 5 Nov 2015 22:46:15 +0000 (23:46 +0100)]
Update README

2 years agoMove generator code and test module to subdirs
Olivier Aubert [Thu, 5 Nov 2015 22:41:49 +0000 (23:41 +0100)]
Move generator code and test module to subdirs

2 years agoUpdate setup.py with trove classifiers
Olivier Aubert [Thu, 5 Nov 2015 22:24:28 +0000 (23:24 +0100)]
Update setup.py with trove classifiers

2 years agoUpdate version number
Olivier Aubert [Thu, 5 Nov 2015 22:14:19 +0000 (23:14 +0100)]
Update version number

2 years agoAdd test coverage for MRL encoding fix
Tomas Groth [Fri, 2 Oct 2015 08:49:48 +0000 (10:49 +0200)]
Add test coverage for MRL encoding fix

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
2 years agoUpdate generated python bindings
Olivier Aubert [Wed, 30 Sep 2015 13:52:48 +0000 (15:52 +0200)]
Update generated python bindings

2 years agoUse utf-8 encoding for all strings passed through the libvlc API
Olivier Aubert [Wed, 30 Sep 2015 13:51:41 +0000 (15:51 +0200)]
Use utf-8 encoding for all strings passed through the libvlc API

The libvlc API explicitly uses utf-8 for all strings. Using
sys.getfilesystemencoding() on the python side will not produce the
appropriate encoding especially on windows.

Reported by Tomas Groth <tomasgroth@yahoo.dk>

3 years agoFix email address
Olivier Aubert [Sat, 5 Sep 2015 21:09:08 +0000 (23:09 +0200)]
Fix email address

3 years agoFix setup.py to fall back to generated file
Odin Hørthe Omdal [Sat, 5 Sep 2015 17:50:56 +0000 (19:50 +0200)]
Fix setup.py to fall back to generated file

When you install python-vlc using pip or a similar package manager, you
won't have access to VLC files so you can't generate a fresh vlc.py.
However, the project itself ships a reasonably updated pre-generated
vlc.py that we can fall back to.

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
3 years agoUpgrade distribute_setup file to work with newer python
Odin Hørthe Omdal [Sat, 5 Sep 2015 17:49:42 +0000 (19:49 +0200)]
Upgrade distribute_setup file to work with newer python

Setuptools 0.7b and later is preferable to distribute.

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
3 years agoAdd some fields to Event union
Olivier Aubert [Sat, 5 Sep 2015 21:04:08 +0000 (23:04 +0200)]
Add some fields to Event union

3 years agoAdd support for MediaPlayer.get_full_(title|chapter)_descriptions
Olivier Aubert [Fri, 19 Jun 2015 11:46:24 +0000 (13:46 +0200)]
Add support for MediaPlayer.get_full_(title|chapter)_descriptions

(untested for the moment)

3 years agoFix ctypes.byref reference
Olivier Aubert [Fri, 19 Jun 2015 11:43:34 +0000 (13:43 +0200)]
Fix ctypes.byref reference

3 years agoImplement struct parsing.
Olivier Aubert [Fri, 19 Jun 2015 09:29:17 +0000 (11:29 +0200)]
Implement struct parsing.

Still imperfect (does not handle struct embedded in struct), and generation is not implemented

3 years agoUpdate generated bindings
Olivier Aubert [Fri, 5 Jun 2015 14:22:23 +0000 (16:22 +0200)]
Update generated bindings

3 years agoReplace NULL by None in python doc
Olivier Aubert [Fri, 5 Jun 2015 14:22:02 +0000 (16:22 +0200)]
Replace NULL by None in python doc

3 years agopython bindings: wrap new API functions libvlc_media_new_callbacks libvlc_media_get_t...
Olivier Aubert [Wed, 1 Apr 2015 19:29:39 +0000 (21:29 +0200)]
python bindings: wrap new API functions libvlc_media_new_callbacks libvlc_media_get_type libvlc_audio_output_device_get

3 years agoFix gtk example against py3k
xantares 09 [Sat, 7 Mar 2015 17:46:30 +0000 (18:46 +0100)]
Fix gtk example against py3k

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
3 years agoFix python-qt example against py3k
xantares 09 [Sat, 7 Mar 2015 17:45:48 +0000 (18:45 +0100)]
Fix python-qt example against py3k

Signed-off-by: Olivier Aubert <contact@olivieraubert.net>
3 years agoAdd warnings in the doc about options not available at the media level
Olivier Aubert [Sun, 15 Feb 2015 19:32:53 +0000 (20:32 +0100)]
Add warnings in the doc about options not available at the media level

Fixes #4

3 years agoCache python wrappers for EventManager instances
Olivier Aubert [Wed, 4 Feb 2015 15:44:41 +0000 (16:44 +0100)]
Cache python wrappers for EventManager instances

3 years agoScript intended to reproduce a GC related issue
Olivier Aubert [Wed, 4 Feb 2015 10:32:16 +0000 (11:32 +0100)]
Script intended to reproduce a GC related issue

3 years agoUpdate generated python bindings to include new API elements
Olivier Aubert [Tue, 20 Jan 2015 14:02:00 +0000 (15:02 +0100)]
Update generated python bindings to include new API elements

4 years agoUpdate TODO
Olivier Aubert [Mon, 22 Sep 2014 11:51:43 +0000 (13:51 +0200)]
Update TODO