Skip to main content
Participating Frequently
Oct 12, 2014 5:28 PM UTC
Question

End of stream or off-line message?

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 is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Conor Brennan
    Adobe Employee
    Adobe Employee
    Oct 15, 2014 12:45 PM UTC

    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;
      
    }
    }

    Translate
    Participating Frequently
    Oct 15, 2014 7:28 PM UTC

    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?

    Translate
    Adobe Employee
    Oct 17, 2014 6:55 AM UTC

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

    Translate