summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-12-03Version 0.4.3v0.4.3jaseg1-1/+1
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-02Version 0.4.2v0.4.2jaseg1-1/+1
2019-12-02tests: Silence libmpv during unittestsjaseg1-1/+54
2019-12-02Fix Python 3.5 compatibilityjaseg2-2/+2
2019-12-01Version 0.4.1v0.4.1jaseg1-1/+1
2019-12-01Add stream protocol handlingjaseg3-6/+365
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-26Bump version to v0.4.0v0.4.0jaseg1-1/+1
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-26key bindings: Introduce key char parameterjaseg2-13/+13
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-26README - vo "opengl" doesn't exist anymoreRijnder Wever1-1/+1
2019-11-10Version 0.3.10v0.3.10jaseg1-1/+1
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-08README: Add cosven's QT/OpenGL examplejaseg1-0/+7
2019-02-07fix: getProcAddr function should return a function or 0cosven1-1/+1
2018-12-02Merge pull request #78 from trin94/patch-1jaseg1-0/+38
Readme: Add PyGtk embedding example
2018-12-01Readme: Add PyGtk embedding exampleElias1-0/+38
2018-07-25Version 0.3.9v0.3.9jaseg1-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.
2017-12-25README: Add PyQT embedding examplejaseg1-2/+42
2017-12-25README: Add "supported platforms" sectionjaseg1-0/+13
2017-12-25Refactor node_cast_value to use large if/elif instead of dict lookupjaseg1-12/+25
2017-12-24Bump version to v0.3.8v0.3.8jaseg1-1/+1
2017-12-24Fix MpvNode logic to use pröper unionsjaseg2-36/+53
...instead of lots manual ctypes pointer casting
2017-12-05v0.3.7: Remove windows classifiers since nobody tests this on windowsjaseg1-3/+1
2017-09-19Bump version to 0.3.6v0.3.6jaseg1-1/+1
2017-09-18Fixed TypeError: _handle_key_binding_message() signature incompatibility ↵Vilius Grigaliūnas1-1/+1
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-14Version 0.3.5v0.3.5jaseg1-1/+1
2017-09-14Nicer API names for add/multiply/cycle propertyjaseg1-7/+7
add: _add_property -> property_add multiply: _multiply_property -> property_multiply cycle: _cycle_property -> cycle
2017-09-14Wrap all docstrings to 120 char line widthjaseg1-150/+91
This is to stay consistent with everything else.
2017-09-13Reformat doctrings to follow PEP 257 and use reStructuredTextRaphael McSinyx1-192/+228
2017-09-13Fix add, cycle and multiply command.Raphael McSinyx1-4/+14
2017-08-23Version 0.3.4v0.3.4jaseg1-1/+1
2017-08-23README: loop -> loop_playlistjaseg1-1/+1
2017-08-21Add on_key_pressjaseg3-11/+74
2017-08-20Bump version to 0.3.3v0.3.3jaseg1-1/+1
2017-08-20Fix key binding registration for bound methods, add unit testsjaseg2-9/+83
2017-08-20Fix window dragging while using custom key bindingsjaseg1-1/+1
closes #45
2017-08-06mpv, mpv-test: Fix vim mode linesjaseg2-2/+3
2017-08-06setup.py: Add pillow extra dependencyjaseg1-0/+3
2017-08-06Bump version to 0.3.2v0.3.2jaseg1-1/+1
2017-08-06Restore compatibility with older libmpv versionsjaseg1-1/+1
At least v0.26.0 also works with the unfixed version
2017-08-06Re-nerf property observer testsjaseg1-21/+18
2017-08-06Bump version to 0.3.1v0.3.1jaseg1-1/+1
2017-08-06mpv-test.py: Add more thorough property testsjaseg1-0/+82
2017-08-06mpv.py: Un-break property write accessjaseg1-9/+19
2017-08-03Bump version to 0.3.0v0.3.0jaseg1-1/+1
2017-08-03Add pillow-based screenshot_raw commandjaseg2-0/+17
2017-08-03Move to fully FORMAT_NODE-based APIjaseg2-467/+230
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-03Bump version to 0.2.9v0.2.9jaseg1-1/+1
2017-08-03Fixes for libmpv v0.26.0jaseg2-5/+12