Wednesday, November 7, 2012

Error #2044: Unhandled NetStatusEvent

Recently we worked on the simple application called face detection using actionscript. While doing this application, we faced some common problems, we are sharing here.

Scenario: When the application did not find any face in front of camera, it needs start playing some flv file. For this we created the flv player and added the flv file to the player. Below is the code for that.
nc=new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
vid = new Video(320,240);
                       
addChild(vid);
client = new Object();
ns.client = client;
client.onMetaData = nsMetaDataCallback;

vid.attachNetStream( ns );                       
//This file we are going to play in the player
ns.play( "trailer.flv" );


When we try to compile the code, we got the below error.

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound

The reason for the above problem is, file path is not proper. Check for the file name or path for the given flv file. we have given tralier.flv instead of trailer.flv

Possible error codes are :
  • NetStream.Buffer.Empty
  • NetStream.Buffer.Full
  • NetStream.Buffer.Flush
  • NetStream.Play.Start
  • NetStream.Play.Stop
  • NetStream.Seek.InvalidTime
  • NetStream.Seek.Notify      



2 comments:

natts said...

hi sir,
i have visited your site ..it's really amazing ...i learned lot of things about linked list...and i need help to write a c program to do calculator function using linked list with neat explanation...

Umair Ali said...

An error is handled for the use of the true Tories for the people. The nomination of the handler and essayshark on essayuniverse has been implemented for the use of the forms for the humans. The story is narrated in simple language for the individuals.

Popular Posts