Any way to replay the last few seconds?

Gary Steinert gary.steinert at gmail.com
Tue Nov 4 01:55:10 UTC 2008


On Monday 03 November 2008 19:34:14 Larry Alkoff wrote:
> Mark Kretschmann wrote:
> > On Fri, Oct 24, 2008 at 12:12 PM, Gary Steinert 
<gary.steinert at gmail.com> wrote:
> >> On Friday 24 October 2008 01:10:07 Larry Alkoff wrote:
> >>> I have been looking in the documentation and this mailing list for a
> >>> way to go back a few seconds in a song and replay from there.
> >>>
> >>> This feature is implemented in Banshee using control< and control> 
and
> >>> goes back (and forward) 2 seconds each time ctl< is pressed.  So by
> >>> pressing that key twice I can go back 4 seconds, etc.  But I want
> >>> Amarok to be my main player <g>.
> >>>
> >>> It's very handy when learning my Spanish lessons to go back a few
> >>> seconds to hear the phrase again.
> >>>
> >>> Is there any way to implement this (perhaps a script) in 1.4 or
> >>> possibly later in 2?
> >>
> >> I am working on a feature that allows you to replay a certain amount of
> >> the track when resuming from pausing. For example, if you pause a 
track
> >> at 01:13 it could resume at 01:11. Unfortunately it wont make 2.0 but
> >> I'm hoping to get it in for 2.1.
> >
> > To be honest with you, this is the kind of highly specialized
> > micro-feature that we would never allow into Amarok proper. It's of
> > use only to a very small minority of users, and would bloat Amarok for
> > the rest of us.
> >
> > However, implementing this as an Amarok 2 script and releasing it on
> > kde-apps.org would be perfectly fine and welcome :)
>
> Hello Mark.
>
> Looking at the "The DCOP Interface" section in the Help file in Amarok,
> I notice a DCOP call called 'seekRelative(int 1).
>
> The explanation is "Seek to a position relative to the current current
> track position".
>
> I wonder if this function could be used to add 2 functions to Amarok:
> %DCOP amarok player seekRelative(-2)
> and
> %DCOP amarok player seekRelative(2)
> to go back and forth in the music file being played.
>
> I don't know much about DCOP yet, but would be willing to learn if you
> told me this might be feasible.
>
> The absolute best would be if I could remap the arrow keys to use these
> functions instead of seeking back and forth 10 seconds as they do now.
> Ten seconds is much too long for learning a language.
>
> Larry
>
> _______________________________________________
> Amarok mailing list
> Amarok at kde.org
> https://mail.kde.org/mailman/listinfo/amarok

It may be possible to introduce a setting which controls the length of the 
seek with the arrow keys, to allow you to change the 10 seconds to, say, 2 
or 3. This may be deemed, however, to add unnecessary bulk to Amarok for 
what is really a more specialised feature. I'll leave that decision up to the 
devs that have been around a bit longer than I have.

Either way, I am currently working on a script that will seek backwards in the 
currently playing track when the player is paused. Hopefully it will be 
available on kde-apps in the next week or so. This may be what you are 
looking for :)

Gary



More information about the Amarok mailing list