Skip navigation
Currently Being Moderated

NetStream.Play.StreamNotFound not working

Aug 3, 2011 4:28 AM

I would like to have the possibility to detect when NetStream is not working (i.e. the name used in initialization can't be found on the server side). The StreamNotFound doesn't work at all. I've read that it's the fault of the Flash Media Server, which automaticaly creates new stream, if it cannot be found (of course it's an empty stream - what is wrong from my point of view). Is it true? If yes, can I disable it on the server side, so I could easily detect if the stream name is correct?

 
Replies
  • Currently Being Moderated
    Aug 3, 2011 4:49 AM   in reply to uxon

    If you are talking about recorded streams or VOD content - then if the file is not present on the server - you will get NetStream.Play.StreamNotFound - but if you are subscribing for live stream and there is no one publishing - it will create stream and wait for someone to publish. You can howerver set some timer at client side and see if you dont recieve NetStream.Buffer.Full after you recieve NetStream.Play.Start - you can conclude there is no one publishing and close the stream.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2011 6:37 AM   in reply to uxon

    AFAIK, it is not possible that way ...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2011 4:45 PM   in reply to uxon

    How about using NetStream.Publish.BadName ?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2011 2:03 AM   in reply to uxon

    First of all if you are getting NetStream.Buffer.Full for non existent stream - i would consider that as bug. Please provide details for us to investigate the issue.

     

    Secondly the solution which you talked about setting time and checking time property should work as per me - though i have not tried it.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2011 4:25 AM   in reply to uxon

    BadName is a server generated code, and you need to search it in server side LR. It might help u do few more things.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 4, 2013 1:46 PM   in reply to uxon

    I am facing exactly similar issues . I need a way to find if a live stream exist on  .

     

    In server application I tried to do Stream.get which creates stream if it doesnt exist , I tried Stream.length which returns 0 always for live streams .

     

    On client side it never returns NetStream.Play.StreamNotFound or any other status if stream is not there .

     

    So in short there is no way other than putting a timeout on client side to check if a live stream exist . I dont know why Adobe gives so much weightage to .flv on demand content when people are using it for live streams also . Lot of times we do lot of work arounds to achieve what adobe should be providing in their products and its hard to get any support  when it comes to development .

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2013 8:08 AM   in reply to MulticastManiac

    A question with 17,000 views with no resolution !

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2013 11:40 AM   in reply to MulticastManiac

    I am not aware of what exactly is your use case - but you can always use Admin API "getLiveStreams" (http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d1238 8431df580a12a34991ebc-8000.html#WS5b3ccc516d4fbf351e63e3d11a0d3edb98-7 fe7AdminAPI) to know which all streams are published to a particular application.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2013 12:09 PM   in reply to SE_0208

    @SE_0208

     

    Thanks for your response .

     

    Will Admin API work in server application .asc  ? Or at least I have to provide admin credentials for it to work ?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 9, 2013 2:26 AM   in reply to MulticastManiac

    Yes you can invoke them via Server-side script. Yes you would need Admin credentials for Admin API commands.

     
    |
    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