Hi,
I dont know where to post cause it’s not explicit game-relatet but I think there are lots of gurus here in this forum that could possibly help me out here.
I wrote a movie-player using the quicktime-java-api from apple. So far it works great.
I wanted to write my own controller-panel (start/stop buttons, position-slider, etc.) that also shows the current movie-position as a timecode (hh:mm:ss:ff).
I managed to get the necessary components and I am able to get the current-movie time and jump to specific time.
But my problem is, that I need to update the slider’s position and the time-display constantly when the movie is playing. I don´t want to put the whole thing into an active rendering loop. I tried mulit-threading, but it didn’t really work (the whole program reacted jerky while starting an extra thread to update the time). I think there could be as feature of the quicktimeplayer-instance that fires events when a new frame has been drawn (cause the player itself has to have some kind of rendering loop). Does anyone know how I can make a listener for frame-drawing events (if there are some)?