Search code examples
actionscript-3rtmplive-streaming

alert client when live stream is done in AS3


I thought that it was the NetStream.Play.UnpublishNotify in the NetStatusEvent but that doesn't get fired when I stop the live stream. The onFCUnsubscribe event does get fired, however, I have a 5 second buffer and it doesn't wait for that buffer. It gets that event almost instantly. What is the correct way to alert a user that the stream is finished?


Solution

  • The Netstream.Play.Stop is fired when the stream finishes playing.

    Have a look here. http://flash-reference.icod.de/NetStream.html