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?
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.
So what is the best way to check if the stream is flowing?
edit:
Ok, so I will answer it by myself. I see no elegant way to resolve this issue. But in my opinion, the best one is to periodicaly check, for example, the time property and compare it with its last value. Thanks to that we can have (nearly) constant information about flow of the stream.
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.
North America
Europe, Middle East and Africa
Asia Pacific