Skip to content

Terminate mpv on main process quit #7

Description

@notpushkin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions