Hi,
I’ve been working on a simple webinar system which currently utilises three classes:
VideoWebinarLoader - Takes care what webinar to load and how to position it on screen.
VideoWebinar - Creates the video webinar using the inbuilt Video,NetConnection and NetStream classes. Provides functions for starting, stopping, pausing the video and seeking to the next cuePoint.
VideoWebinarClient - Data handling class for the NetStream object, implements onMetaData and onCuePoint functions which send the data back to the VideoWebinar class so the VideoWebinar class knows where it is up to and what to seek to when the next() and prev() functions are called.
Now I have all this working but I’m not really sure how to best deal with errors, I have handlers for them but I’d like to provide some sort of feedback for the end user when things have gone wrong. I was wondering if I should create a specific error class which will work out what has gone wrong and output the correct message or just use the handlers in the VideoWebinar class to output an error message with an error message class used like var newError = new ErrorMessage(message:String);.
Basically I have a number of ideas but I’d like to know what the best way to go about this is, has anyone done something like this before and if so how have they dealt with errors and messages to the user?
Thanks,
eb_dev