Mailing List Archive

[MythTV/mythtv] 53d32e: Support displaying bookmark state and watched prog...
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 53d32e054c9f8dbbc61969cd589b1b9500100aef
https://github.com/MythTV/mythtv/commit/53d32e054c9f8dbbc61969cd589b1b9500100aef
Author: hambre <jaham@gmx.net>
Date: 2024-02-05 (Mon, 05 Feb 2024)

Changed paths:
M mythtv/libs/libmythbase/programinfo.cpp
M mythtv/libs/libmythtv/tv_play.cpp
M mythtv/programs/mythfrontend/globalsettings.cpp
M mythtv/programs/mythfrontend/mythfrontend.cpp
M mythtv/programs/mythfrontend/mythfrontend.pro
M mythtv/programs/mythfrontend/playbackbox.cpp
M mythtv/programs/mythfrontend/playbackbox.h
A mythtv/programs/mythfrontend/playbackstate.cpp
A mythtv/programs/mythfrontend/playbackstate.h
M mythtv/programs/mythfrontend/videodlg.cpp
M mythtv/programs/mythfrontend/videodlg.h

Log Message:
-----------
Support displaying bookmark state and watched progress in video manager (#742)

* Add support for MARK_TOTAL_FRAMES for videos

Extend ProgramInfo to load, delete and insert
MARK_TOTAL_FRAMES entries in filemarkup table.
This markup type can now be written by mythcommflag
when rebuilding the seektable for a video file.
This is in preparation to support displaying watched
progress within the video manager.

* Save total frame count for video files

When exiting the media player, check if the current
video file alreadey has a total frame count saved
within the filemarkup table. If it is not yet present,
then save the total frame count from the player.
This way the watched progress does not need extra
tooling to provide the total frame count of a video file.

* Pull playback state for all videos from database

Query and cache playback state related data from
database so the watched progress can be shown for
multiple video list items.

* Add bookmark and watched percent support to videos

Add support for displaying a bookmark state within
the video manager. This uses the playback state class
for caching the playback state for all videos.
Also adds support for displaying watched progress
state to video manager. This needs the last playing
position (already supported) as well as a total
frames markup datum within the filemarkup table.
The watched progress is then calculated and can be
displayed via a progress in the currently selected list
item.

* Signal changed playback state

Signal removal of last played position and bookmark
to video dialog, so it can update the respective
button list item.

* Fix displaying watched state after playback

When watching a video to the end, the player can mark
(if enabled by a setting) the video as watched. This
was not reflected in the GUI state until now.
So after receiving the playback stopped event, we load
the video metadata of the current video and sync it with
the metadata from the cache.

* Add setting to always show watched progress

Adds a setting to always show watched progress even
if the recording or video is marked as watched.
Make behaviour of displaying the watched progress
the same in recordings and video lists.


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits