Skip navigation
Currently Being Moderated

Reconnecting streams when a connection drops

May 21, 2012 2:44 PM

 
Replies
  • Currently Being Moderated
    May 21, 2012 2:44 PM   in reply to Community Help

    The "Stream Reconnect" example up top doesn't work.  On disconnecting, when "reconnectStream()" runs, the old NetStream object is gone.  I get error "Error #2154: The NetStream Object is invalid.  This may be due to a failed NetConnection."  I guess when the connection dies, the Flash Player must clean up the old NetStream object or something.  It's not there anymore when you go to play the stream again after reconnect.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 2:58 PM   in reply to Community Help

    My bad.  Just saw that you can't call NetConnection.close() to simulate.  That WILL clean up your NetConnection.  Not sure how to simulate this in my app.  I'm just playing a video back in the VOD service that comes with FMS.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 5:56 PM   in reply to Community Help

    Is the smart seek functionality available for IOS packaged apps?  I've been wrestling with it here but have had no luck.  Reconnect happens fine and NetStream begins playing again but from the beginning - not from where the stream was.  So with each disconnect the recorded file plays over again.  I do indeed have ns.inBufferSeek=true;   Is there something I'm misunderstanding about that smart seek mechanism?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 13, 2012 1:27 AM   in reply to Community Help

    Is there a recommended solution to monitor the connection on iOS when publishing rather than playing?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points