Skip to content

Copy over mpv files on app resume#143

Merged
Secozzi merged 4 commits into
animiru-new-mainfrom
mpv-files
Apr 13, 2026
Merged

Copy over mpv files on app resume#143
Secozzi merged 4 commits into
animiru-new-mainfrom
mpv-files

Conversation

@Secozzi
Copy link
Copy Markdown
Collaborator

@Secozzi Secozzi commented Apr 3, 2026

The problem:
Copying over files can take a decent amount of time which is currently spent before playing a video. Having to wait for everything to copy over isn't ideal. Currently this is done after mpv is initialized, so you need to reopen the player once more to see the changes.

The solution:
Copy over everything when the app is in foreground instead. Then there's no need to wait for files to be copied over when opening the player.

Potential TODOs:

  • Do something similar for custom buttons, although that task takes <10ms

@Secozzi Secozzi marked this pull request as ready for review April 6, 2026 18:53
@Secozzi Secozzi marked this pull request as draft April 9, 2026 10:43
@Secozzi Secozzi marked this pull request as ready for review April 10, 2026 11:27
@Secozzi Secozzi merged commit 47cad6f into animiru-new-main Apr 13, 2026
1 check passed
@Secozzi Secozzi deleted the mpv-files branch April 13, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant