-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix player resuming from start when clicking on a timestamp #11734
Fix player resuming from start when clicking on a timestamp #11734
Conversation
Why does the player change to a popup player in the first place when clicking on a timpestamp? Shouldn’t it just seek in the currently playing player? |
While discussing it, We should also See the context in which it wasn't touched, like a comment from #4241 when we switched to Unified Player. |
I just assumed this was the expected behavior at this point, you can definitely make the argument to change this or give the user the option to choose between the two. I personally dislike the idea of just removing the pop-up option all together since most users are probably used to it at this point but i am not the person that should make this decision. |
While debugging #7427 developer litetex investigated the player code. Though I am not a developer, I am unable to help you but reading comments there(also mentioned issues/PRs) may help you understand the code around it better and may get some new insights into it. |
I have looked into it a bit and it seems like its no longer necessary to call I don't know how the process for feature requests is but since the rewrite to NewPlayer is going on right now, it seems like the topic how timestamps should be opened should probably be discussed for NewPlayer but not be implemented for this version of the Player. If that is not the case i am happy to implement it differently. |
Please be aware that we are completely reworking the player at the moment so anything apart from very simple bug fixes will not be reviewed/merged. But we’ll keep this in mind for the new player. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setRecovery()
call was introduced in c45514b, see this blame, but since that commit is giant, who knows what was the thought process behind adding that line.
I tested on my phone (Android 13), on API 34 emulated and on API 22 emulated, and I tried opening a video, switching popup/background/main multiple times and starting a new video that replaces the queue, and could not notice any issue. Therefore let's take a gamble: let's merge this and see if users report any new sort of player bug. If something happens, since this is a single-line change, it can be reverted without issues. Thank you for looking into this!
So on clarification it DOES fix at least the portion of resetting the player timestamp back to zero. SO the above can be disregarded |
These are (imho) not related, this PR was specifically for #11302 your issue is still unfixed but not relevant in this context. |
Hmm, yea that is true. It doesnt go to the beginning. My bad. +1 for timestamp reset has been fixed from my testing. Above edit commented out |
What is it?
Description of the changes in your PR
Opening a timestamp from a comment (or somewhere else) started the pop-up player from the beginning instead of the timestamp (more details in the linked issue). Now it always opens the pop-up player at the specified time and not from start.
I am honestly unsure if this fix is acceptable since i don't fully understand the purpose of calling
setRecovery()
in this spot in the first place, so i am open to suggestions and/or help regarding this topic. I have not found any behavior that breaks with these changes though.Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence