Added optional loading of liblua
This commit is contained in:
parent
9b68b0866e
commit
2e6516aa32
1 changed files with 5 additions and 0 deletions
5
mpv.py
5
mpv.py
|
|
@ -244,6 +244,11 @@ def _event_generator(handle):
|
||||||
raise StopIteration()
|
raise StopIteration()
|
||||||
yield event
|
yield event
|
||||||
|
|
||||||
|
def load_lua():
|
||||||
|
""" Use this function if you intend to use mpv's built-in lua interpreter. This is e.g. needed for playback of
|
||||||
|
youtube urls. """
|
||||||
|
CDLL('liblua.so', mode=RTLD_GLOBAL)
|
||||||
|
|
||||||
class MPV:
|
class MPV:
|
||||||
""" See man mpv(1) for the details of the implemented commands. """
|
""" See man mpv(1) for the details of the implemented commands. """
|
||||||
def __init__(self, loop=None, **kwargs):
|
def __init__(self, loop=None, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue