PDA

View Full Version : Brief step back (for missed subs/lines) dev


ezd
2004-02-02, 13:26
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 :))?

thanks,

ezd

Gamester17
2004-02-02, 15:31
(for reference: ezd patch info can be found here: "patch proposal" (http://www.xboxmediaplayer.de/cgi-bin/ib31/ikonboard.cgi?act=st;f=3;t=6751) and here: "brief rewind for missed lines/subtitles" (http://sourceforge.net/tracker/index.php?func=detail&aid=888355&group_id=64793&atid=508680)

Frodo
2004-02-02, 19:17
k,
just added the following


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

ezd
2004-02-03, 02:51
whoa, that's fast, thanks frodo!

can't waait for the next cvs tarball :)

ezd
2004-02-04, 20:31
function added, posted the diffs @ sf (http://sourceforge.net/tracker/index.php?func=detail&aid=890624&group_id=87054&atid=581840).