actionscript-3videonetstreamstagevideo

NetStream OnMetaData error


I have this error: Error Screenshot

on this code : Code listing screenshot

In another project, my class works well, but here it does not. Why?


Solution

  • Your video contains closed caption events, but you haven't registered an event listener to handle the "Show this line of text" event (OnMetaData), so the appearance of caption data is an uncaught exception.

    Register an event listener, even if it does nothing, or use a video without captions.