mpv_control
MpvControllable(play_callback=None, **mpv_args)
¶
Bases: PlayerBase
This player can be controlled and it also does not close if
the media is changed, the window stays open until kill_player
is called.
You need libmpv for this, check the python-mpv
project's requirements to know where to get it.
For detailed documentation about the functions have a look at the base class.
If you want to use the extra features of the controllable player look here for documentation (or use your LSP), the python-mpv mpv instance lives in the mpv attribute.
Attributes:
Name | Type | Description |
---|---|---|
mpv |
The python-mpv mpv instance |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
play_callback
|
Optional[PlayCallback]
|
Callback called upon starting to play a title with |
None
|
**mpv_args
|
Optional[Any]
|
Arguments passed to the MPV instance check the python-mpv repo or check the official list of arguments. There are some default arguments set, if you specify any arguments here, all the defaults will be discarded and this will be used instead. |
{}
|