Hi,<br>Here a patch that add a method to the mediaObject class<br>for getting the current frame number.<br><br>qint64 currentFrameNumber(), return -1 on failure<br><br>Why a method for that?<br>I like karaoke, and I need to write a multios Lyrics timer,<br>
the format of time's file is frame based so I need the frame number.<br><br><br>I make the method in mediaobjectinterface not pure to don't break<br>compilation of backends, but if you prefer I can add the method in all<br>
backend (return -1 when unimplanted)<br><br>Attached also the patch for xine backend, It herits the currentTime bug <br>(when no tickinterval is set) because the only way I found in xine to get<br>the frame number is calculate it with the frame duration. <br>
<br>I have a quick look at gstreamer, and It seems also the way to get it.<br>It very unaccurate with stream with variable FPS<br><br>Also attached a small use case that just print the frame number on mouse <br>click and release event.<br clear="all">
<br>-- <br>Sylvain "Skarsnik" Colinet<br><br>Victory was near but the power of the ring couldn't be undone