Commit graph

140 commits

Author SHA1 Message Date
jaseg
3d61558714 Bump version to v0.4.0
This change breaks the key binding API. Old code has to be modified to
add the new "char" parameter:

old:
    player = mpv.MPV()
    @player.key_binding('Q')
    def binding(state, name):
        print('blep')

new:
    player = mpv.MPV()
    @player.key_binding('Q')
    def binding(state, name, char): # <<< here
        print('blep')
2019-11-26 12:26:58 +01:00
jaseg
35e69cd93e key bindings: Introduce key char parameter
Adapt key binding script message handling to be compatible with the new
key char parameter introduced upstream in
21f2468d67

This change is backwards-compatible. With older mpv versions this
parameter will be None.
2019-11-26 12:26:37 +01:00
Rijnder Wever
9d6d973f91 README - vo "opengl" doesn't exist anymore 2019-11-26 12:13:57 +01:00
jaseg
4f69531721 Version 0.3.10 2019-11-10 16:31:58 +01:00
dfaker
728e8b2556 Use stride//4 rather than the returned image w
As per discussion on the mpv issue https://github.com/mpv-player/mpv/issues/7076 to handle the screenshot-raw when vf cropping filters are in use.
2019-11-10 16:11:22 +01:00
jaseg
7117de4005 README: Add cosven's QT/OpenGL example 2019-02-08 14:41:23 +09:00
cosven
7905ebacdd fix: getProcAddr function should return a function or 0 2019-02-07 23:35:14 +08:00
jaseg
9b4faea030
Merge pull request #78 from trin94/patch-1
Readme: Add PyGtk embedding example
2018-12-02 10:07:20 +09:00
Elias
85eaac9363
Readme: Add PyGtk embedding example 2018-12-01 21:54:33 +01:00
jaseg
8ba7d27e79 Version 0.3.9 2018-07-25 12:08:59 +02:00
jaseg
a873fd7f7b command: fix default show-text duration param value
The mpv manpage seems to be wrong here. A look at mpv's command.c show
that -1 works fine here.
2018-07-25 12:07:52 +02:00
jaseg
4352b01e29 README: Add PyQT embedding example 2017-12-25 13:33:03 +01:00
jaseg
243414d5e0 README: Add "supported platforms" section 2017-12-25 13:32:46 +01:00
jaseg
62add955f9 Refactor node_cast_value to use large if/elif instead of dict lookup 2017-12-25 13:16:58 +01:00
jaseg
092707259b Bump version to v0.3.8 2017-12-24 22:46:22 +01:00
jaseg
8f5f5c645b Fix MpvNode logic to use pröper unions
...instead of lots manual ctypes pointer casting
2017-12-24 22:43:13 +01:00
jaseg
c2616054a1 v0.3.7: Remove windows classifiers since nobody tests this on windows 2017-12-05 13:34:09 +01:00
jaseg
70a639bd7d Bump version to 0.3.6 2017-09-19 12:12:13 +02:00
Vilius Grigaliūnas
345ffb1998 Fixed TypeError: _handle_key_binding_message() signature incompatibility with mpv < v0.15.0
key-binding message has key name parameter only since mpv version 0.15.0 (as stated in manual), therefore trying to bind keys with earlier versions results in TypeError: _handle_key_binding_message() missing 1 required positional argument: 'key_name'.

This change makes this argument optional and default to None.
2017-09-18 20:21:58 +03:00
jaseg
4ebf4e1c37 Version 0.3.5 2017-09-14 12:09:04 +02:00
jaseg
901e42042b Nicer API names for add/multiply/cycle property
add: _add_property -> property_add
multiply: _multiply_property -> property_multiply
cycle: _cycle_property -> cycle
2017-09-14 12:07:11 +02:00
jaseg
dcf75e604c Wrap all docstrings to 120 char line width
This is to stay consistent with everything else.
2017-09-14 12:03:50 +02:00
Raphael McSinyx
fa125c6604 Reformat doctrings to follow PEP 257 and use reStructuredText 2017-09-13 15:46:13 +07:00
Raphael McSinyx
9f4b31f166 Fix add, cycle and multiply command. 2017-09-13 15:17:30 +07:00
jaseg
a1eeaffe14 Version 0.3.4 2017-08-23 09:08:24 +02:00
jaseg
1942078389 README: loop -> loop_playlist 2017-08-23 09:07:47 +02:00
jaseg
2ca5c7b9c8 Add on_key_press 2017-08-21 15:36:03 +02:00
jaseg
14783b2193 Bump version to 0.3.3 2017-08-20 23:38:33 +02:00
jaseg
7f929b09fe Fix key binding registration for bound methods, add unit tests 2017-08-20 23:37:18 +02:00
jaseg
1c6d74dd91 Fix window dragging while using custom key bindings
closes #45
2017-08-20 23:12:20 +02:00
jaseg
13191bfeb9 mpv, mpv-test: Fix vim mode lines 2017-08-06 22:28:01 +02:00
jaseg
2eeddcda05 setup.py: Add pillow extra dependency 2017-08-06 22:27:42 +02:00
jaseg
968277652a Bump version to 0.3.2 2017-08-06 21:46:08 +02:00
jaseg
22373ba7ba Restore compatibility with older libmpv versions
At least v0.26.0 also works with the unfixed version
2017-08-06 21:45:19 +02:00
jaseg
cc84e4939b Re-nerf property observer tests 2017-08-06 21:32:17 +02:00
jaseg
96e8ca390a Bump version to 0.3.1 2017-08-06 21:16:48 +02:00
jaseg
0ed8403171 mpv-test.py: Add more thorough property tests 2017-08-06 21:16:23 +02:00
jaseg
d21cfa2812 mpv.py: Un-break property write access 2017-08-06 21:16:09 +02:00
jaseg
740643cd83 Bump version to 0.3.0 2017-08-03 12:40:07 +02:00
jaseg
48eb88ef54 Add pillow-based screenshot_raw command 2017-08-03 12:39:44 +02:00
jaseg
1582390031 Move to fully FORMAT_NODE-based API
This will break lots of stuff.
* Use MPV_FORMAT_NODE mostly everywhere
* Dynamically discover properties instead of using a static list
* Modify encoding handling to be more versatile
2017-08-03 12:36:21 +02:00
jaseg
8771490c8e Bump version to 0.2.9 2017-08-03 01:45:24 +02:00
jaseg
e0591798f2 Fixes for libmpv v0.26.0 2017-08-03 00:53:27 +02:00
jaseg
5b3dedc309 Bump version to 0.2.8 2017-08-02 10:48:18 +02:00
jaseg
e29d499f18 mpv module: Remove load_lua
It wouldn't work on all systems anyway due to differing names for liblua
("liblua.so", "liblua-5.1.so" etc.) and also doesn't seem to be
necessary anymore.
2017-08-02 10:46:36 +02:00
jaseg
7dc375f85c MPV constructor: Add loglevel argument 2017-08-02 10:46:13 +02:00
jaseg
1fa874db37 Bump version to 0.2.7 2017-07-23 14:45:06 +02:00
jaseg
0eb1ee8dab Fix register_event_callback to work with methods 2017-07-23 14:45:00 +02:00
jaseg
4972dd1e6d Bump version to 0.2.6 2017-07-13 00:40:31 +02:00
jaseg
121575f814 Remove debug hack accidentially left in the code 2017-07-13 00:40:31 +02:00