Camera
Wisej.Web.Ext.Camera.Camera
Last updated
Wisej.Web.Ext.Camera.Camera
Last updated
Namespace: Wisej.Web.Ext.Camera
Assembly: Wisej.Web.Ext.Camera (3.2.0.0)
The Camera component makes it possible to take pictures with the device's camera and upload them to the server.
Initializes a new instance of the Camera class.
Boolean: Specifies whether audio should be recorded. (Default: False
)
BorderStyle: Indicates the border style for the control. (Default: Solid
)
String: Specifies the video device to use. (Default: ""
)
If not specified or invalid it will use the first device returned by the browser.
VideoFacingMode: Specifies whether the video is front-facing (mobile-only). (Default: True
)
Int32: Video capture resolution - Height (Default: True
)
Boolean: Specifies whether the media should be mirrored. (Default: False
)
ObjectFit: Specifies the object-fit to apply to the video. (Default: True
)
See css3_object-fit.
Boolean: Specifies whether video should be recorded. (Default: True
)
String: Returns or sets the filter (filter) to apply to the video. (Default: null
)
Int32: Video capture resolution - Width (Default: True
)
Returns the names of the available video devices.
Throws:
ArgumentNullException callback is null.
Returns the names of the available video devices.
Throws:
ArgumentNullException callback is null.
Returns the names of the available video devices.
Returns: Task<String[]>. An awaitable Task.
Returns the current image from the camera.
Throws:
ArgumentNullException callback is null.
Returns the current image from the camera asynchronously.
Returns: Task<Image>. An awaitable Task.
Starts recording.
You must call StopRecordingto end recording.
Stops recording and uploads the recorded stream to the Uploaded event.
CameraErrorHandler Fired when an error occurs in the camera setup or usage.
UploadProgressEventHandler Fired while the Camera control receives the recording stream being uploaded.
This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.
UploadedEventHandler Fired when the current recording is available for download.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
callback
Callback method to receive the device names.
refresh
Refreshes the list of devices from the browser.
callback
Callback method to receive the device names.
refresh
Refreshes the list of devices from the browser. Default is false.
callback
Callback method to receive the Image or null.
format
The video encoding mime type format, MIME_types.
bitsPerSecond
Audio and video bits per second. MediaRecorder.
updateInterval
Update interval in seconds. The default is zero causing the video to be uploaded on StopRecording.