jaseg
677b62cd81
Remove outdated OpenGL examples from README
2022-04-24 13:43:44 +02:00
jaseg
5f4cf600b5
Add event queue overflow handling
2022-04-24 13:43:44 +02:00
jaseg
3cb1196621
Finish event infrastructure rework.
2022-04-22 23:24:10 +02:00
jaseg
85ad2a6aa6
Finish rewriting event infrastructure
2022-04-22 23:18:48 +02:00
jaseg
c90a5f692f
Continue reworking event infrastrucutre.
...
Note: We do not decode property values by default anymore.
2022-04-22 23:01:13 +02:00
jaseg
f4c9f2fec4
Use mock.Mock to mock Xvfbwrapper on Windows
2022-04-22 21:55:09 +02:00
jaseg
2d87c897e2
Update event wrapper classes
2022-04-22 21:53:10 +02:00
jaseg
341f4c5c16
Remove deprecated libmpv API
2022-04-22 21:53:08 +02:00
jaseg
116c756fa4
add albumart arg to video_add
2022-04-22 21:52:51 +02:00
DepFA
9148f544eb
Windows test workaround
...
Add dummy Xvfb implementation, parameterise vo and use gpu renderer for windows tests
2022-04-22 09:19:54 +01:00
DepFA
0f48db6398
Remove MpvSubApi wrapper
2022-04-20 13:57:56 +01:00
DepFA
87559cde89
Remove dropped mpv-2 api methods.
2022-04-20 13:55:22 +01:00
jaseg
9fbe39d3b4
Add some useful input commands
2022-04-18 00:31:33 +02:00
jaseg
be1e78158a
Add keyword argument command interface
2022-04-18 00:26:47 +02:00
jaseg
80eaa1de9d
setup.py: Update license information
2022-04-18 00:01:12 +02:00
jaseg
6cc0b23114
Update copyright headers
2022-04-18 00:00:19 +02:00
jaseg
c84984aa0f
Use upstream license
2022-04-17 23:57:57 +02:00
jaseg
1e87833d25
tests: Suppress video output on wayland systems
2022-04-17 23:52:44 +02:00
jaseg
607bd3ff12
Add missing new event types
2022-04-17 23:52:29 +02:00
jaseg
8d448d49f1
Add future-based async command API
2022-04-17 23:52:12 +02:00
Elias Müller
d28f135382
mpv.py: add default error handler for failed async commands
2022-04-17 22:51:06 +02:00
Elias Müller
107c563f8d
mpv.py: add support for asynchronous commands
2022-04-17 22:51:06 +02:00
jaseg
e8c8736a1a
Default to node_command and rename old command to string_command
2022-04-17 22:49:20 +02:00
Kira
2b3249a73d
mpv.py: change mpv_detach_destroy to mpv_destroy
2022-04-17 22:42:40 +02:00
jaseg
c12e1ed8a1
porcelain: Add fancy wait_for_event/property future handling
2022-04-17 22:37:10 +02:00
jaseg
3d956b91f8
Bump minimum python version to 3.7
2022-04-17 22:36:52 +02:00
jaseg
b0d34af527
README: Add skip silence example
2022-04-17 22:36:13 +02:00
jaseg
850bfcbd2f
tests: Fix flaky sub_add test
2022-04-17 22:35:47 +02:00
jaseg
b8cac81b36
tests: Add wait_for_shutdown unit test
2022-04-17 22:35:33 +02:00
jaseg
7459d3df04
tests: Switch to pytest, remove devnull hack
2022-04-17 22:35:13 +02:00
jaseg
0cda09c628
Add timeouts and error forwarding to wait_for_{property,event} conditions
2022-03-26 14:23:04 +01:00
jaseg
a7e61c9362
Fix segmentation fault in unit tests on wayland
2022-03-26 14:23:04 +01:00
jaseg
518421a127
use daemon = True instead of setDaemon
2022-03-26 14:23:04 +01:00
Paride Legovini
1f59cfa072
test_property_observer_decorator: bump sleep to 0.1s
...
Fixes flaky test with mpv 0.33.1 on ppc64el.
Closes #178 .
2021-10-14 23:23:35 +02:00
Marcel Moreaux
b5f03dd2b7
Fix handling of c_void_p args in MpvRenderParam.__init__()
...
Handling of c_void_p args (x11_display, wl_display) was broken.
Added a case to correctly handle the c_void_p constructor case.
See https://github.com/jaseg/python-mpv/issues/169
2021-07-28 12:37:55 +02:00
jaseg
03e847d8a1
Update PyGObject example with locale fixup workaround
...
Closes #150
2021-03-19 10:47:25 +01:00
hixz00
3105db35a4
mpv.py: update: Use ctypes.memmove to speed up
2021-01-19 18:59:59 +01:00
jaseg
5e581e817b
Add dfaker's imgui/OpenGL demo
2021-01-19 18:55:45 +01:00
Robozman
fa1d9da6ab
README: Add Robozman's PyQt5/QML/OpenGL render context example
2020-10-02 16:21:47 +02:00
Dziqs
035e1db1db
Fixing typo in keep_playlist causing NameError
2020-07-25 23:42:26 +02:00
jaseg
d1f304ab92
tests: Make test srt path relative to test script
2020-07-21 08:41:06 +02:00
jaseg
170f15d390
Make tests run when called through setup.py from root dir
2020-07-21 08:37:00 +02:00
Louis-Philippe Véronneau
2b66d0d97b
Move test files into a 'tests' dir
2020-07-21 08:32:47 +02:00
jaseg
e29e042998
Version 0.5.1
2020-07-20 14:20:10 +02:00
jaseg
1f2b0058b3
mpv.py: terminate: Raise warning when called from event thread.
2020-07-19 22:34:24 +02:00
jaseg
e85342a147
mpv.py: add wait_for_shutdown
2020-07-19 22:33:56 +02:00
jaseg
d6840f800e
mpv.py: add check_core_alive, check core in __getattr__, __setattr__
2020-07-19 22:33:42 +02:00
jaseg
e98a91ed2b
Bump version to v0.5.0
...
This release introduces a new ShutdownError thrown in a few places in
case the underlying libmpv handle gets closed. Previously, such
situations would lead to hangs (wait_for_* methods) or segfaults (e.g.
__getattr__). Some of this carnage is still possible, but these
remaining issues will be closed over the next releases by throwing
ShutdownErrors in more places.
2020-07-19 21:56:39 +02:00
jaseg
dae47345f7
tests: add tests for new wait_* API
2020-07-19 21:54:49 +02:00
jaseg
583f12ed63
mpv.py: add prepare_and_wait_for_property
2020-07-19 21:54:40 +02:00