Skip to main content
Known Participant
Jan 9, 2013 8:27 PM UTC
Answered

Wrong NetStatusEvent codes for multicast player

I have created a simple multicast player using actinscript 3 which works fine and plays multicast stream well . Although when stream should fail . Or even if I stop Flash Media server it returns success  codes : "NetConnection.Connect.Success" ,"NetStream.Connect.Success" and "NetStream.Play.Start" . I cant detect  it when multicast stream fails in flash player. I need to switch to unicast stream if multicast fails and I cant detect a failure because of wrong status. 

Why I am getting wrong status ?

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Jan 18, 2013 4:57 AM UTC

I checked that and I never receive "NetStream.Buffer.Full" . Here is status list in order I receive them .

NetConnection.Connect.Success

NetStream.Connect.Success

NetStream.Play.Reset

NetStream.Play.Start

NetStream.MulticastStream.Reset

NetStream.Video.DimensionChange

Even though I receive NetStream.MulticastStream.Reset all the time I wanted to make sure that it doesnt depend on FMS version .


"NetStream.MulticastStream.Reset" does not depend on the version of FMS. Also, "NetStream.MulticastStream.Reset" event is dispatched, if the publisher for that instance of the named stream stops, the playing client resets to another instance of the named stream.

In your case if you are able to playback the stream, you will definitely receive "NetStream.Buffer.Full" before the start of the playback. If you are not receiving this event, then the playback will not start.

8 replies

Known Participant
Jan 14, 2013 3:10 PM UTC

Any one from adobe staff cares to reply on this ?

Translate
Jan 15, 2013 11:31 PM UTC

Hi,

When we do nc.connect("rtmfp:"), it means we are using IP multicast. It uses routers to send data to a specified IP address. The routers send the data to any client registered to an IP multicast group. So, for this even if no flash media server is there on the network, you will get NetConnection.Connect.Success.

Translate
Known Participant
Jan 16, 2013 8:50 PM UTC

Abhishek

Thanks a lot  . I was digging it over net for last 3 days and didnt find anything . I really appreciate your response.

Even though there is no stream I get NetStream.Connect.Success , NetStream.Play.Reset  and  NetStream.Play.Start after NetConnection.Connect.Success .

Since I am trying to rollback to unicast stream I need to know somehow that user couldnt play stream or is not on expected flash server network . Is there any way to find that ?

Translate
Known Participant
Jan 11, 2013 2:30 PM UTC

Can anyone from adobe check this ? When I do nc.connect("rtmfp:") and even though there is no flash media server on my local network I still get all success code.

Translate