Subtitles from XML cuepoints - some titles get skipped [AS3]
I'm working on a project that requires subtitles for Flash videos being streamed online. Right now I've got a player that will call up an XML file specific to the video being played, and from there will convert the contents of the XML file to cuepoints and display the titles, as set out in the XML file.
Problem is, I'd say at least 20% of the titles don't show up - the previous title stays up for too long and then the next title comes up eventually, and the one in the middle gets passed over. If I change the timing on the subtitles (i.e. push the problem title back by 0.5 seconds) then that title might show up but the one before or after it might disappear.
Has anyone run into this sort of thing before? I'll post the AS that I'm using to load the titles. The XML isn't standard cuepoint XML either. Code's based off of this tutorial, modified to play more than one video (different frames set different source .flv and .xml files and are connected by gotoAndStop() calls).
Is this even the best way of going about this all? Or should I be looking at embedding cuepoints directly into the video files (setting them in Premiere)? The footage is also going to be on DVD so ideally I could set up the titles in a format that Encore could import... as opposed to captioning everything twice.
I wrote this tutorial and noticed this bug on AS2 and AS3 (apologises for my poor english).
There are 2 ways to solve your problem, i do not recommend the first, because I do not exactly know what it change :
I hope this will help you,