forked from platypush/platypush
_event_callbacks is a protected attribute of mpv.MPV
This commit is contained in:
parent
9ee81d7999
commit
70fe2459de
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ class MediaMpvPlugin(MediaPlugin):
|
|||
os.environ[k] = v
|
||||
|
||||
self._player = mpv.MPV(**mpv_args)
|
||||
self._player.event_callbacks += self._event_callback()
|
||||
# noinspection PyProtectedMember
|
||||
self._player._event_callbacks += [self._event_callback()]
|
||||
|
||||
@staticmethod
|
||||
def _post_event(evt_type, **evt):
|
||||
|
|
Loading…
Reference in a new issue