The process is stored in player.mpvPlayer attribute:
>>> _backend.player.mpvPlayer
ChildProcess {domain: null, _events: EventHandlers, _eventsCount: 2, …}
>>> _backend.player.mpvPlayer.kill("SIGTERM")
true
However, sometimes .kill() doesn't work for some reason.
There's also the quit mpv command.
The process is stored in
player.mpvPlayerattribute:However, sometimes
.kill()doesn't work for some reason.There's also the
quitmpv command.