[mythtv] Working on a "Bookmarked videos" feature in MythVideo

Eggert Thorlacius eggi at menandmice.com
Mon Mar 8 11:38:10 UTC 2010


Hi all

I am working on a patch to MythVideo that will pop up a window listing all videos with bookmarks, allowing the user to select and play one of the quickly, and I have a few quick questions.

* What is the easiest way of showing a list with two columns?  I'm currently adding  MythUIButtonListItems to a MythUIButtonList, and it seems to support only one column

* Is there a utility function somewhere that converts a framecount to a HH:MM:SS timestamp string (to show in the second column)?

* When the user selects a video, I'd like to start playing from the bookmark.  Currently I use "VideoPlayerCommand::PlayerFor(item.get()).Play();" to start playback which will, after quite a bit of processing, present the user with the "Start playing from beginning/Start playing from bookmark" dialog.  I could add a "playFromBookmark" parameter to all the functions that get called along the way, but it is pretty ugly and would probably cause my patch to be rejected.  Is there some easy way to skip this dialog that I am overlooking?

* To access the dialog, people can open the menu and select "Bookmarked videos" or jump straight in with a hotkey.  Both the hotkeys that make sense ('b' and 'm') are in use.  Should I just pick a keystroke at random and assume that people can change the default or does anyone have a good suggestion for a default hotkey?

Eggert


More information about the mythtv-dev mailing list