summaryrefslogtreecommitdiff
path: root/mpv.py
AgeCommit message (Collapse)AuthorFilesLines
2022-07-11Fix show_text level default parameterElias Müller1-1/+1
2022-06-17Fix `observe_property()` docstringNaglis Jonaitis1-5/+5
1. Fix decorator name - the decorator for property observation handlers is `@property_observer()`. 2. Fix handler's unregistration method name 3. Fix handler function signature - the signature is ``fun(property_name, new_value)`` and we can't have a bare `*` with no names after it. 4. Fix undefined variable in the example
2022-06-17Error for known-incompatible libmpv (closes #223)James Gerity1-0/+5
2022-04-24Add cancel handling to streamsjaseg1-12/+9
2022-04-24Add event queue overflow handlingjaseg1-19/+32
2022-04-22Finish event infrastructure rework.jaseg1-6/+6
2022-04-22Finish rewriting event infrastructurejaseg1-3/+8
2022-04-22Continue reworking event infrastrucutre.jaseg1-25/+58
Note: We do not decode property values by default anymore.
2022-04-22Update event wrapper classesjaseg1-47/+41
2022-04-22Remove deprecated libmpv APIjaseg1-29/+11
2022-04-22add albumart arg to video_addjaseg1-2/+2
2022-04-20Remove MpvSubApi wrapperDepFA1-3/+0
2022-04-20Remove dropped mpv-2 api methods.DepFA1-19/+3
2022-04-18Add some useful input commandsjaseg1-0/+9
2022-04-18Add keyword argument command interfacejaseg1-8/+44
2022-04-18Update copyright headersjaseg1-8/+7
2022-04-17Add missing new event typesjaseg1-0/+2
2022-04-17Add future-based async command APIjaseg1-37/+46
2022-04-17mpv.py: add default error handler for failed async commandsElias Müller1-9/+27
2022-04-17mpv.py: add support for asynchronous commandsElias Müller1-4/+48
2022-04-17Default to node_command and rename old command to string_commandjaseg1-2/+5
2022-04-17mpv.py: change mpv_detach_destroy to mpv_destroyKira1-2/+2
2022-04-17porcelain: Add fancy wait_for_event/property future handlingjaseg1-27/+39
2022-03-26Add timeouts and error forwarding to wait_for_{property,event} conditionsjaseg1-40/+61
2022-03-26use daemon = True instead of setDaemonjaseg1-1/+1
2021-07-28Fix handling of c_void_p args in MpvRenderParam.__init__()Marcel Moreaux1-0/+3
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-01-19mpv.py: update: Use ctypes.memmove to speed uphixz001-1/+1
2020-07-25Fixing typo in keep_playlist causing NameErrorDziqs1-1/+1
2020-07-19mpv.py: terminate: Raise warning when called from event thread.jaseg1-4/+7
2020-07-19mpv.py: add wait_for_shutdownjaseg1-0/+11
2020-07-19mpv.py: add check_core_alive, check core in __getattr__, __setattr__jaseg1-8/+12
2020-07-19mpv.py: add prepare_and_wait_for_propertyjaseg1-0/+10
2020-07-19mpv.py: Update copyright datejaseg1-1/+1
2020-07-18mpv.py: Add docstrings to new additions to APIjaseg1-2/+17
2020-07-18Sprinkle some thread safety over event loop, add *wait_for_eventjaseg1-56/+91
2020-07-18mpv.py: improve shutdown handling, replace wait_for_playbackjaseg1-11/+38
2020-07-16mpv.py: add wait_until_paused, wait_until_playingjaseg1-0/+8
2020-07-16mpv.py: Add overlay supportjaseg1-0/+104
2020-07-16mpv.py: add some missing commandsjaseg1-5/+97
2020-07-15remove superfluous whitespacesLouis-Philippe Véronneau1-2/+2
2020-07-12Fix handling of dashed options in loadfile.jaseg1-1/+1
Add tests based on --sub-file. Also add a test for sub_add here.
2020-01-03Initial libmpv/render.h mappingjaseg1-11/+195
For an example using this with GTK see: https://gist.github.com/jaseg/657e8ecca3267c0d82ec85d40f423caa
2019-12-04Windows: Use cytpes.load_library to look for DLLjaseg1-5/+8
2019-12-03Allow mpv-1.dll to be placed in python script directory (#96)ripdog1-1/+4
Windows: Look for DLL in script directory Loading DLLs through ctypes on Windows is a mess. ctypes looks in PATH, which is different from the Windows built-in DLL loading system. By default ctypes looks next to python.exe, but you might not want to install python script dependencies next to the system-wide python interpreter. This commit adds a fallback looking for mpv-1.dll in the same directory the mpv.py script is placed in to allow people to use python-mpv with a minimum in configuration. You can still control loading behavior through PATH. For details on this, consult the following stackoverflow answer: https://stackoverflow.com/a/23805306
2019-12-02Fix Python 3.5 compatibilityjaseg1-1/+1
2019-12-01Add stream protocol handlingjaseg1-4/+261
This allows you to directly feed bytes into mpv without going through a file, FIFO etc. first. The new API is: @player.register_stream_protocol(name) @player.python_stream(name, size) @player.python_stream_catchall See their docstrings for their usage.
2019-11-26key bindings: Introduce key char parameterjaseg1-4/+4
Adapt key binding script message handling to be compatible with the new key char parameter introduced upstream in https://github.com/mpv-player/mpv/commit/21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 This change is backwards-compatible. With older mpv versions this parameter will be None.
2019-11-10Use stride//4 rather than the returned image wdfaker1-1/+1
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-02-07fix: getProcAddr function should return a function or 0cosven1-1/+1
2018-07-25command: fix default show-text duration param valuejaseg1-1/+1
The mpv manpage seems to be wrong here. A look at mpv's command.c show that -1 works fine here.