jaseg / python-mpv

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

Control player from another .py file #189

Closed BurlyLlama28 closed 2 years ago

BurlyLlama28 commented 2 years ago

Is it possible to control the MPV player by the way of calling functions like playlist_append from another .py file?

jaseg commented 2 years ago

You can split an application using python-mpv into several python modules (~.py files) like any other python app. Have a look at the python doc for how to do that: https://docs.python.org/3/tutorial/modules.html