jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
554 stars 69 forks source link

Fixes for use with Python2 #11

Closed fpp-gh closed 8 years ago

fpp-gh commented 8 years ago

For those who, like me, are stuck with Python 2 at the moment, and trying to make this work...

Initially, mpv wouldn't event import, but that was easy enough to fix:

From there on, mpv imports, loads videos and most methods work: command, terminate, seek, frame_step, loadfile/play, toggle_osd, show_text for example. Haven't tested them all, but certainly enough to go by...

Thanks for these bindings !

jaseg commented 8 years ago

Fixed in 35de5ec . Making MPV inherit from object was missing from your list, otherwise the properties (most notably pause) don't work.

Thank you for reporting this!

fpp-gh commented 8 years ago

I hadn't even noticed there were supposed to be properties, but so much the better, thanks :-)