1 Reply Latest reply on Apr 22, 2008 9:33 AM by john isaacks

    Detect when NetStream finished playing

    john isaacks
      I have a video I am loading and playing via a NetStream, I would like to call a function whenever the video finishes playing (ie reaches the end of the video).

      How do I do this?

      Thanks!!
        • 1. Re: Detect when NetStream finished playing
          john isaacks Level 1

          Well, i kind of figured out a pseudo listener for the NetStream play completion.

          what I did was get the duration from the onMetaData,

          then use an interval to keep checking the NetStream.time compared to the duration to see if the playhead was at the end. Not very effiecient but it seems to work. Nevertheless if someone knows of the correct or better way I would like to know.

          Thanks!