Thank you for your question.
key88sf wrote:Is there a way to be notified when playback of an FLV file ends because the end of the video is reached?
I tried FPCN_ONREADYSTATECHANGE, but that is called with state == 4 almost immediate when the video begins playing. I need to know when the end of the video has been reached normally.
Only if a FLV player supports this.
The player I've sent you should support it. Handle FPCN_FLASHCALLW to receive notifications. Handle notification onVideoStatus, the following status is available:
NetConnection.Connect.Success
NetStream.Play.Start
NetStream.Play.StreamNotFound
NetStream.Play.Stop
NetStream.Buffer.Empty
NetStream.Buffer.Full
You need NetStream.Play.Stop.
Thank you.