Look for frame in Gif playback


#1

Hi,

I want to monitor a gif playing and when a certain frame is displayed trigger an overlay on one of the indexed layers…
Is there anything i can look for that holds the gif frame count?

Thanks
Daniel


#2

There’s nothing built in. You’d have to add a function to the GIF decoder to return the current frame. I don’t think this should be too hard, but I’m not in front of the code right now. Try enabling the DEBUG defines and see if there’s already something that prints out the frame number and see if you can find the frame count variable from there. It’s possible there’s no frame counter implemented.


#3

Hi Louis,
Your spot on with the debug mode, i used DEBUG_PARSING_DATA to count the number of frames…

Thanks again…