Kodi Community Forum

Full Version: Brief step back (for missed subs/lines) dev
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,

i like to be able to step back some seconds in a movie, to re-hear a mumbled line or re-see a quickly disappearing subtitle. search for a keyframe some seconds before the current position- easy.

i indeed quickly made an xbmp patch for this (put it on sf), but while browsing up and down i couldn't find any function to obtain the current playing position- getpercentage is too crude and gettime is for the total running time.

did i totally miss a function or would i need to patch mplayer (if i can get it to compile Smile)?

thanks,

ezd
(for reference: ezd patch info can be found here: "patch proposal" and here: "brief rewind for missed lines/subtitles"
k,
just added the following

Quote:cmplayer::gettime()
returns current playtime (in secs)

cmplayer::gettotaltime()
returns total duration of movie (in secs)

cmplayer::seektime(int itime)
jump to [itime] seconds

with these functions you should b able to add your patch
frodo
whoa, that's fast, thanks frodo!

can't waait for the next cvs tarball Smile
function added, posted the diffs @ sf.