Skip to main content

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.

public class CameraErrorEventArgs : 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​

Instance member CameraErrorEventArgs(message)​

Initializes a new instance of the CameraErrorEventArgs class with the message describing the error reported by the client.

NameTypeDescription
messageStringThe 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​

Instance member Message​

String: Returns the error message.

Used By​

NameDescription
CameraErrorHandlerRepresents the method that will handle the Error event.