mpv-player / mpv-player/mpv

MPV instances continue playback when their windows NOT in focus and even BEFORE users authorized after PC woke after sleep

Open
#11,458 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information
  • mpv version 0.35.0-317g-9880b06a
  • Windows Version Windows 11 22H2
Reproduction steps
  1. Add to input.conf the following:
MBTN_LEFT cycle pause
SPACE cycle pause
  1. Open one or more videos in MPV, leave it unplayed/in pause
  2. Put PC to sleep
  3. wake it up
Expected behaviour

Nothing happening with MPV

Actual behaviour

Every instance of MPV starts playback of the videos. Then, after the authorization is complete, you have to stop the playback in each instance of MPV.

The question is how to force MPV instances to not autostart playback after waking up the PC, let alone when the player is out of focus and the user did not even log in the shell yet.

Log file

Log file

Sample files

Not applicable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the listed Windows sleep-and-wake steps with paused MPV instances and review the linked log file. Done means instances remain paused after wake and do not begin playback before authorization or while their windows are unfocused.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.