0 Replies Latest reply on Nov 21, 2006 11:54 AM by bgdev

    VideoDisplay throws exception for FLV with onLastSecond

      I am using a FLV file that has an onLastSecond event embedded in it. When playing in the debug player, it throws the following exception:

      Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: .VideoPlayerNetStream was unable to invoke callback onLastSecond. error=ReferenceError: Error #1069: Property onLastSecond not found on .VideoPlayerNetStream and there is no default value.

      In the non-debug player, regular play seems okay, but seeking around over the one second mark doesn't work.

      I tried putting an onLastSecond function into the NetStream prototype (and it seemed to get called) but it didn't prevent the exception. Here's the code I tried (I also tried various flavors of return values/parameters etc):

      NetStream.prototype.onLastSecond = function():Boolean { return true; };

      Is there a way to make this work? Or another workaround? Or a fix for the VideoDisplay control?