Skip to main content
Participating Frequently
October 12, 2014
Question

End of stream or off-line message?

  • October 12, 2014
  • 1 reply
  • 616 views

When you stop live streaming, is there a way to have the client player present an end of stream or off-line message?

Right now when I stop streaming, the client plays the last part of the stream and then just buffers endlessly.

    This topic has been closed for replies.

    1 reply

    Conor Brennan
    Adobe Employee
    Adobe Employee
    October 15, 2014

    something like this?


    conn = new NetConnection();
    conn
    .addEventListener(NetStatusEvent.NET_STATUS, onStatus);

    private function onStatus(e:NetStatusEvent):void {
      
    switch(e.info.code) {
      
    case "NetStream.Play.StreamNotFound":
      
    //some code
      
    break;

      
    case "NetStream.Play.Stop":
      
    //some code
      
    break;
      
    }
    }

    Participating Frequently
    October 15, 2014

    I'm actually using StrobeMediaPlayback right now. Is there a way to do it with it? Or do I need to make a custom player?

    Adobe Employee
    October 17, 2014

    IMHO StrobeMediaPlayback  is now an open source player...Please download it from(I think) sourceforge.net and modify it to suit your needs.