Class CameraDevice
- Namespace
- NuvTools.AspNetCore.Blazor.Components
- Assembly
- NuvTools.AspNetCore.Blazor.dll
A video input device available to the browser.
public sealed record CameraDevice : IEquatable<CameraDevice>
- Inheritance
-
CameraDevice
- Implements
- Inherited Members
Constructors
CameraDevice(string, string?)
A video input device available to the browser.
public CameraDevice(string DeviceId, string? Label)
Parameters
DeviceIdstringThe identifier to pass to
SwitchDeviceAsync.LabelstringThe device name. Browsers only fill it in after the user has granted camera permission at least once — before that it comes back empty.
Properties
DeviceId
The identifier to pass to SwitchDeviceAsync.
public string DeviceId { get; init; }
Property Value
Label
The device name. Browsers only fill it in after the user has granted camera permission at least once — before that it comes back empty.
public string? Label { get; init; }