-
Notifications
You must be signed in to change notification settings - Fork 344
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
v32 upgrade - exit menu changed? #543
Comments
|
This was part of an intentional reworking of the bookmark. See #331 for more information. -- from an email to mythtv-users -- When you start a recording from the "Watch Recordings" page, if you If you are using one of the MythCenter themes, the "Watch Recordings" |
|
In an idea world we would extend the multi-user support that stuartm started and make those settings per user rather than global settings. |
|
@linuxdude42 you do describe the way it now works in v32 but you do not address the issue raised. In v31 the exit menu does have an option to "exit wiithout saving" and this then does not update the bookmark or the last played position (which is the same in v31). The next playback then starts at the beginning or at the bookmark position. In v32 the exit menu does not have this option anymore and there is no way to exit without updating the last played position. This then means that the only way to start playback from the beginning is to use the menu option as described. @paul-h having multi-user support would definitely open up new possibilities. But in this case it is just feature that is removed. |
|
For the record, I'm in favor of doing away with this mostly useless, menu option just for the code simplification. It's easy enough to clear the last played postion after exit and/or restart playback from the beginning. |
|
gigem, |
|
It's easier by providing a simpler interface and a simpler and more reliable program because it doesn't have to carry along a lot of legacy support of dubious value. |
|
Since there is an optional prompt on playback exit, is there a way to optionally make the prompt on where to start playback always show if there is a bookmark or saved position? (When playing a recording via |
|
Of course they can; it's just code. But I've already been told they won't. They would rather save a few lines of code at the expense of usability. |
|
This new behaviour has caused a good deal of annoyance in my household. How can I revert the behaviour back to that of v31? |
|
I hate to "me too"... but echoing BobE |
|
20220628-clearposonexit.patch.gz Find attached a patch for fixes/32 that restores the "Exit Without Saving" button of fixes/31 in the playback exit menu. @linuxdude42 It may not be what you or I want to use in our houses but apparently some users do appreciate this. |
|
Thanks, kmdewaal. |
|
For easy reading of the patch, this is it in readable form: |
Those building from source can give it a try and those who read source code can also give comment. Next step is to put this in master and if that performs as expected without regressions then it can be put in fixes/32. Then, in mysterious ways, packages will be updated and everybody can update their installation from the packages. |
|
New&Improved patch, now also adds a |
|
Using the new option appears to restore the behavior to that of v31. I still would also like an option that creates a popup asking where to start playback of the recording when selecting a recording with |
|
ulmus-scott: Does pressing the 'm' key when a recordings is selected instead of [Enter] meet your needs? No need to reply. I am running mythtv-frontend-32.0-1.36.20220605git7077a824d2.fc36.x86_64 (Fedora/RPMFusion) kmdewaal: Thank you so much for your work. I will test the fixes/32 branch and your latest patch should you commit it to the tree. |
That brings up the same menu as |
Add the "Clear last played position and exit" choice to the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback. Add the "Exit Without Saving" option to the playback exit menu. This menu is shown when in the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback an option for a prompt on playback exit is selected. In fixes/31 the bookmark representing the last_played_position is only updated on playback exit when so configured. In fixes/32 the last_played_position is continuously updated so there is no easy way to do a real "Exit Without Saving" because the last_played_position has been saved already. Instead, the "Exit Without Saving" and "Clear last played position and exit" actions are implemented by clearing the last played position on playback exit. This insures that the next playback starts at the beginning of the recording or at the bookmark, when there is a bookmark present. This is the same as the behavior of fixes/31 when so configured. Refs #543
|
In limited testing, "Clear last played position and exit" seems to work as intended. Thank you for your time. I will be using this option. I believe one additional change would increase flexibility in dealing with playback/bookmarks, and would restore the behavior of fixes/31. My systems were set to clear (manual) bookmark on playback/resume of a recording in fixes/31. I don't think this is possible now. This would potentially be a check box ("Action on Playback Resume"), outside the 'Action on Playback Exit' radio button pop-up (so I could set "Clear last played position and exit" as well), to offer maximum flexibility to the user. One scenario using "Clear last played position and exit": A manual bookmark is set. Later the recording is resumed, and one may or may not notice it is not the beginning of the recording (depending on recording content: a partial recording of sports is an example), so the bookmark must be toggled to check the bookmark status. The combination of clearing manual bookmarks on resume and last played position on exit means a resumed recording is in a clean state regarding bookmarks/playback position. If these two options were available and set. I know the state of all my recordings, and if I wish to add a bookmark, I have control. This may not be considered worthy of further coding and time. If so, I will live with the current commit and adjust if necessary. Per-user and multiple bookmarks are indeed something that would be 'nice to have', but that is for another day. For these patches/commits to more quickly reach users, they should be ported to the fixes/32 branch. |
Add the "Clear last played position and exit" choice to the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback. Add the "Exit Without Saving" option to the playback exit menu. This menu is shown when in the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback an option for a prompt on playback exit is selected. In fixes/31 the bookmark representing the last_played_position is only updated on playback exit when so configured. In fixes/32 the last_played_position is continuously updated so there is no easy way to do a real "Exit Without Saving" because the last_played_position has been saved already. Instead, the "Exit Without Saving" and "Clear last played position and exit" actions are implemented by clearing the last played position on playback exit. This insures that the next playback starts at the beginning of the recording or at the bookmark, when there is a bookmark present. This is the same as the behavior of fixes/31 when so configured. Refs #543 (cherry picked from commit c46e186)
|
Thanks for testing. There has some time passed in master and no regression have been reported so this is a good moment to put it in fixes/32. This fix is about the new "last played position" and does not change the way bookmarks are done. |
|
Yes, absolutely. "Clear bookmark on playback" would be nice to have (at least in one person's opinion). Thanks for going the extra mile and checking on this. As to if it gets restored to fixes/32, obviously your call. |
|
I did have a look at it but the code behind the "Clear bookmark on playback" in fixes/31 is rather complicated. It does clear an existing bookmark on program exit but only if it is near the end and if the "Save on Exit" option is selected. This is all about using the bookmark to save and clear the last played position and not about using bookmarks as bookmarks. |
Add the "Clear last played position and exit" choice to the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback. Add the "Exit Without Saving" option to the playback exit menu. This menu is shown when in the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback an option for a prompt on playback exit is selected. In fixes/31 the bookmark representing the last_played_position is only updated on playback exit when so configured. In fixes/32 the last_played_position is continuously updated so there is no easy way to do a real "Exit Without Saving" because the last_played_position has been saved already. Instead, the "Exit Without Saving" and "Clear last played position and exit" actions are implemented by clearing the last played position on playback exit. This insures that the next playback starts at the beginning of the recording or at the bookmark, when there is a bookmark present. This is the same as the behavior of fixes/31 when so configured. The difference with the previous version of this feature in commit c46e186 is that the code used for choice "Clear last played position and exit" had the same numerical value as the choice "Save position and exit" in fixes/31. This caused a change in behavior when upgrading from fixes/31 to fixes/32. This is now avoided by using a numerical value that has not previously been used in this context. Refs #543
|
I've just now pushed a new commit to master with the same functionality but hopefully without the regression that necessitated the revert of the previous commit to master. As before, if this has been in master for a while it will be ported back to fixes/32. |
Add the "Clear last played position and exit" choice to the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback. Add the "Exit Without Saving" option to the playback exit menu. This menu is shown when in the "Action on playback exit" configuration in mythfrontend/Setup/Video/Playback/General Playback an option for a prompt on playback exit is selected. In fixes/31 the bookmark representing the last_played_position is only updated on playback exit when so configured. In fixes/32 the last_played_position is continuously updated so there is no easy way to do a real "Exit Without Saving" because the last_played_position has been saved already. Instead, the "Exit Without Saving" and "Clear last played position and exit" actions are implemented by clearing the last played position on playback exit. This insures that the next playback starts at the beginning of the recording or at the bookmark, when there is a bookmark present. This is the same as the behavior of fixes/31 when so configured. The difference with the previous version of this feature in commit c46e186 is that the code used for choice "Clear last played position and exit" had the same numerical value as the choice "Save position and exit" in fixes/31. This caused a change in behavior when upgrading from fixes/31 to fixes/32. This is now avoided by using a numerical value that has not previously been used in this context. Refs #543 (cherry picked from commit a03fbca)
|
The new implementation is identical to the previous one other than that the numeric value of the option "Clear last played position and exit" is changed. The consequence is that after an upgrade the configuration will be reset to "Just exit" so the "Clear last played position" configuration option must be selected again. |




Platform:
5.13.0-39-generic en-gb updates for 0.26-fixes #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
MythTV version:
32
Package version:
Component:
What steps will reproduce the bug?
watch a recorded TV show and then exit
I just completed a v31 -> v32 upgrade this morning for all BE and FE on a bunch of Ubuntu 20.02 machines. Everything seems to have gone well. But I noticed something I don't like. The exit menu from a TV recording now doesn't have a "exit but don't save" option. I'm pretty sure v31 had that. I want to be able to watch a recording and then be able to have my wife watch the same recording from the beginning, not the bookmark where I exited. Without that menu option I'm forced to go a different place a delete that bookmark.
How often does it reproduce? Is there a required condition?
every time
What is the expected behaviour?
The exit menu should have an option to exit without saving (bookmark). I recall that v31 had this.
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: