Brief step back (for missed subs/lines) dev
#1
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
Reply
#2
(for reference: ezd patch info can be found here: "patch proposal" and here: "brief rewind for missed lines/subtitles"
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
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
XBMC Project Founder (Retired), now head programmer of MediaPortal
Reply
#4
whoa, that's fast, thanks frodo!

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

Logout Mark Read Team Forum Stats Members Help
Brief step back (for missed subs/lines) dev0