kdittyr
04-26-2008, 09:37 PM
Hey, everyone, the company I work for needs the ability to insert cue points at certain points into the 8-9000 videos that we currently have for our website. I have seen a few projects that allow you to inject cue-points, but only allow it to be done one at a time (and no source code). Since we need to put them in at five seconds into the video and ten seconds before the end it seems like it would be a rather simple thing (in theory) that could be made batch-able.
That being said I have scoured the web looking for answers on how to do it... everything seems to point to using a byteArray to load the data, then inject the cue points based on the loaded metadata and then save the new flv, but there is no information that I can find about how to do it.
I know how to create a batchable list and save the files afterward (though haven't tried it with flv's), but I don't know how to use the byteArray. I have URLStreamed an flv and then readBytes them into a byteArray, but I have absolutely no idea what to do from there. I am not at my work computer so I don't have an example of my code, but it was really only about ten lines to do that.
These videos are to be used in a custom player that use the Video, NetStream and NetConnection classes so I don't have access to the addASCuePoint of the FLVPlayback class... unless someone knows how to addASCuePoint into a Video or NetStream object.
Is anyone able to point me in the right direction?
That being said I have scoured the web looking for answers on how to do it... everything seems to point to using a byteArray to load the data, then inject the cue points based on the loaded metadata and then save the new flv, but there is no information that I can find about how to do it.
I know how to create a batchable list and save the files afterward (though haven't tried it with flv's), but I don't know how to use the byteArray. I have URLStreamed an flv and then readBytes them into a byteArray, but I have absolutely no idea what to do from there. I am not at my work computer so I don't have an example of my code, but it was really only about ten lines to do that.
These videos are to be used in a custom player that use the Video, NetStream and NetConnection classes so I don't have access to the addASCuePoint of the FLVPlayback class... unless someone knows how to addASCuePoint into a Video or NetStream object.
Is anyone able to point me in the right direction?