Frequently Asked Questions

NetStream.Publish.BadName in EventListener While Publishing

QUESTION:

When I close a stream connection (on the publisher) and connect it again it worked, but when I disconnect my internet connection (for testing) then reconnect and refresh the page, it gave me: NetStream.Publish.BadName in EventListener.

ANSWER:

When a broadcaster stops publishing, there still may be clients connected, especially if there is any buffering or lag between publishing and subscribing. As long as the stream is still active, the broadcaster can’t re-publish to that live stream. The broadcaster has to wait until the stream is no longer active before re-broadcasting with the same stream ID. You will also see the stream listed if you go to the subscribe page of your server until it has been totally cleared.