Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting ZIM file should stop playing pip video #1003

Closed
kelson42 opened this issue Oct 7, 2024 · 6 comments · Fixed by #1005
Closed

Deleting ZIM file should stop playing pip video #1003

kelson42 opened this issue Oct 7, 2024 · 6 comments · Fixed by #1005
Assignees
Milestone

Comments

@kelson42
Copy link
Contributor

kelson42 commented Oct 7, 2024

If I play a video in pip and delete the source ZIM from the library, then the video continues. It should be stopped.

@kelson42 kelson42 added the bug label Oct 7, 2024
@kelson42 kelson42 added this to the 3.6.0 milestone Oct 7, 2024
@kelson42 kelson42 changed the title Deleting ZIM file ahould stoping playing video Deleting ZIM file should stop playing pip video Oct 8, 2024
@kelson42
Copy link
Contributor Author

@BPerlakiH Is that doable?

@BPerlakiH
Copy link
Collaborator

@kelson42 I am looking into it. It seems we need to close the tabs related to the ZIM content, which eg. in case of macOS is not happening at the moment.

@kelson42
Copy link
Contributor Author

@BPerlakiH This was impacting my iPad

@kelson42 kelson42 added the iOS label Oct 10, 2024
@BPerlakiH
Copy link
Collaborator

Thank you, I did found a way to handle this on the iPad. I do see related issues on the iPhone and macOS which behave differently, so I will investigate those further.

@kelson42
Copy link
Contributor Author

I obviously don't understand all the details but deleting/unlinking a ZIM file should delete all related items: bookmarks, library entries, tabs... etc.

I would add that should be better be implemented via constraints (for example a tab can not exist if the related library entry does not exist) than imperatively (when I delete a tab, I should check if there is a pip running). Is that doable?

@BPerlakiH
Copy link
Collaborator

BPerlakiH commented Oct 12, 2024

I obviously don't understand all the details but deleting/unlinking a ZIM file should delete all related items: bookmarks, library entries, tabs... etc.

I would add that should be better be implemented via constraints (for example a tab can not exist if the related library entry does not exist) than imperatively (when I delete a tab, I should check if there is a pip running). Is that doable?

I will have a look. The things that are reflected in the local DB eg: tabs and bookmarks are more closer to those constraints, which you described, whereas some other parts (BrowserViewModel, WKWebView, Picture in Picture) are more loosely coupled. Some of these are returning pain-points to be honest, so I will think about them, how to change those to be better for the future.

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

Successfully merging a pull request may close this issue.

2 participants