CameraErrorEventArgs
Namespace: Wisej.Web.Ext.Camera
Assembly: Wisej.Web.Ext.Camera (4.1.0.0)
Represents the data for the Error event of the Camera control. This class contains information about errors that occur during camera operations.
- C#
- VB.NET
public class CameraErrorEventArgs : EventArgs
Public Class CameraErrorEventArgs
Inherits EventArgs
The Error event is triggered when an error occurs, providing the necessary details to handle the situation appropriately. This can include instances of hardware failure, permission issues, or other operational errors that prevent the camera from functioning correctly.
Constructors
CameraErrorEventArgs(message)
Initializes a new instance of the CameraErrorEventArgs class with the message describing the error reported by the client.
| Name | Type | Description |
|---|---|---|
| message | String | The error message returned by the browser's media API, for example "Permission denied", "Requested device not found", or "Could not start video source". The exact wording is browser-specific and is exposed through the Message property. |
This constructor is called by the Camera control when the client reports a failure in the camera setup or usage; applications normally receive the instance through the Error event rather than creating one. No validation is performed on message , so Message can be null if the browser supplied no description.
See also: Error
Properties
Message
String: Returns the error message.
Used By
| Name | Description |
|---|---|
| CameraErrorHandler | Represents the method that will handle the Error event. |