Bug: Playing a Multicast stream before published,when published->NetStream.Publish.BadName
1.- If I try to play a pure ip multicast stream before is published. I receive the next events from NetConnection and NetStream objects. It's normal until this moment:
NetConnection.Connect.Success
NetStream.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
2.- Then when I publish the stream on the group that this netstream is trying to play, I receive the next events
NetStream.MulticastStream.Reset
NetStream.Publish.BadName
NetStream.Connect.Closed
NetConnection.Connect.Closed
a) Why I receive a NetStream.Publish.BadName event??? It's incorrect at that moment, nobody is trying to publish a stream with the same name, I'm only trying to read it! I think this is a bug, and It should work as unicast streaming: If a netstream is waiting for a stream, when the stream is published, the streamimng begins.
b) So, trying to avoid that bug, I would like to know from the FMS when the multicast stream is succesfully published. So, I found the point in the multicast main.asc, where the multicast publication is already done, so, I do a callback there, and I try to start the netstream just at that moment
function netStreamStatusHandler(info)
(...)
case "NetStream.Publish.Start":
streamContext.state = STATE_REPUBLISHING; // Actively republishing to multicast.
But at that moment, I receive the same errors than before:
NetStream.MulticastStream.Reset
NetStream.Publish.BadName
NetStream.Connect.Closed
NetConnection.Connect.Closed
