Skip to content

Safeguard to always resurrect playhead after mishaps #17735

@forthrin

Description

@forthrin

Expected behavior of the wanted feature

I now have the solution to #11560, which will be particularly useful since it seems #17277 and friends will never be fixed.

  1. Rewrite the current playhead to the file watch_later/last every time encountering keyframe.
  2. Introduce a keystroke that sets the playhead to the contents of this file.

This will resolve loss of playhead position when mpv is unintentionally closed, ie. crashes or when opening another file by mistake, and the playhead is not saved. Then you just restart, press the key, and you're back were things went awry.

Alternative behavior of the wanted feature

One could also write the playhead position to one watch file per file, but that will make for a lot of files on a regular basis, and you very rarely will need to resurrect the playhead position for files before the previous one. (Though it could happen if you eg. press >twice.)

Log File

N/A

Sample Files

N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions