Multimedia Guide and Reference


Displaying messages

The easiest way for you to add error handling to your application is to tear off the lastError attribute of a part, such as the Digital Video Player, and connect the errorOccurred event of lastError to the display action of lastError. Whenever a multimedia parts error occurs, a message box is displayed to the user.

There are three different types of errors: critical, warning and information. You can control which errors are displayed in the message box by setting errorThreshold. There are three values that you can set:

1
Only critical errors
2
Both critical and warning errors
3
Critical, warning, and information errors

The default error threshold is 2. To change this, you can connect the aboutToOpenWidget event of your window to the errorThreshold attribute of lastError. Set the argument to be 1, 2, or 3.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]