We are still having problems getting graphics to synch with the video correctly. Can I ask what events people have found to be the most reliable. We are trying to avoid the graphics showing before the video has loaded.
Video clip is playing. A button on this takes you to another playitem in the same playlist. When the 1st frame of video on this new playitem is actually on the TV the graphics are to be displayed (ie so the graphics and video appear together, or at the very least the graphics immediately after the 1st frame).
I have tried every event I can think of, and every one of them seems to fire before the 1st frame of the video is actually presented.
The only way we can get the graphics to always show after the video has started is to have a monitor thread, that checks the playback time of the video and compares it to the starting time. The problem with this, is it is upto the player when to actually start the thread, so on some players we are waiting for 5-6 secs for the graphics to show.
I can't believe this is the right way to do this.
The events we are monitoring from ControllerListener are:
and from playbackListener are:
We are jumping to the correct playmark (which is on frame 0 of the playitem and set as type LINK) with
I've noticed that the cookbook doesn't use this or the skipToPlayitem. Is there anything else we should be aware of?
What I want and expect to happen is that we call skipToMark and an event fires that tells us the 1st video frame is on screen so that the graphics can be redrawn (at this point the graphics have already been drawn to the internal buffer and just need to be presented).
Please help with this most infuriating problem.
Thanks in advance.