Recently found this great little utility that injects extra metadata into flash video files (.flv).
Two of these meta data features I can't belive that Macromedia or Sorenson doesn't include it by default. The first one is the keyframe markers. You can use the /k switch to add 'keyframes' object to the metadata. The second feature is an onLastSecond tag that gives you an event when the video is finished. This is very handy as the infoObject.code == "NetStream.Play.Stop" and the infoObject.code == "NetStream.Buffer.Empty" doesn't always work reliably.
--------------------------------------------------------------------
netStream.onLastSecond = function(infoObject) {
// video is done playing.
_root.gotoAndPlay(_root._currentframe + 1);
};
--------------------------------------------------------------------
More on the FLVMDI.exe Flash Video Metadata Injector here
No comments:
Post a Comment