[mythtv] Patch: FF/Rew single-key speed toggle w/feedback

Isaac Richards ijr at po.cwru.edu
Wed Mar 5 14:23:44 EST 2003


On Wednesday 05 March 2003 12:24 am, Joseph A. Caputo wrote:
> I don't know about anyone else, but I hate having to move my fingers
> over to the number keys on the remote when I want to change the FF/Rew
> speed.  So, I took a cue from my DVD player remote and wrote this
> patch.  On my DVD player, which supports up to 16X FF/Rew, each
> successive press of the FF or Rew key cycles the speed up to the next
> increment, while displaying feedback on the OSD, i.e., "2X", "4X", etc.
> I've tried to do something similar here.  The only thing is, I wasn't
> sure how the FF/Rew scaling factor relates to the "true" playback speed,
> so I made some guesses, which are probably wrong.

It should be close enough =)

> I there is interest in this modification, I'd appreciate feedback on a
> few things:
>
> - Text to display for each scale factor

What you've got it displaying is fine, but it doesn't fit in the default OSD.

> - When you reach the max. speed in either direction, should it "roll
> over" to the first speed, or should it exit FF/Rew mode?  (My DVD player
> does the latter, but I currently have the code doing the former)
>
> Also, at the moment I have the FF/Rew always starting at scale factor
> 1.0, and then when it rolls over it cycles through 0, 0.25 & 0.50.
> Obviously this would have to change if the rollover behavior is
> elminated.

The roll-over stuff makes sense to me.

> Also included in this patch is a minor bugfix where the code retained an
> indication of being in FF or Rew mode for one extra keypress when
> StickKeys was OFF.
>
> Feedback is greatly appreciated.

All in all, nice work -- I do like this better than the number keys method of 
changing the speed.  I'll get this committed to CVS.

Isaac



More information about the mythtv-dev mailing list