Flash Media Server returns a NetStream.Publish.BadName message to a publisher. The error occurs when there is a disruption in the connection to the server and the publisher tries to republish the live stream.
Configure the application's PublishTimeout value to allow Flash Media Server to clear the first publishing connection and allow the subsequent publishing connection to take over the live stream. The PublishTimeout setting specifies the time (in milliseconds) the server waits for a response from a publisher when another client tries to publish to the stream. If the first publisher fails to respond within the time specified in this tag, the server allows the second publisher to take over the live stream. The default value is 2000 (or 2 seconds), follow these steps to change it:
Flash Media Server only allows one client publisher of a live stream to each application instance. It rejects any client that tries to publish an existing live stream and return a NetStream.Publish.BadName status to that client. Due to socket API limitations, it's possible that the server doesn't get notified that the original publisher was disconnected before it tries to republish the stream. The server honors the connection of the original stream publisher and blocks other publishing attempts for the same stream.