Have the same problem, but 0.001% of the cases.
The most common problem occurs because of a microphone. Need to check the microphone before publishing a stream.
Another possible problem:
- Client interrupts the flow -
NetStream.Record.Stop
- Exits the application -
onDisconnect
- Сlient disables the microphone / camera
- "The FLV segment cache is full"
Can warn if called onUnpublish
event on the server.
I also use the timer after the publish ()
method on the client side, if after 3-5 seconds NetStream.Record.Start
event is not called, then the client has a problem and it should be prevented.