Added optional loading of liblua
This commit is contained in:
parent
9b68b0866e
commit
2e6516aa32
5
mpv.py
5
mpv.py
|
@ -244,6 +244,11 @@ def _event_generator(handle):
|
|||
raise StopIteration()
|
||||
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:
|
||||
""" See man mpv(1) for the details of the implemented commands. """
|
||||
def __init__(self, loop=None, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue