initCamera method
override
Initializes the camera and starts streaming.
Implementation
@override
void initCamera() {
camera = getCamera(name);
camera?.setResolution(width: details.resolutionWidth, height: details.resolutionHeight);
if (!camera!.isOpened) {
sendLog(LogLevel.warning, "Camera $name is not connected");
updateDetails(CameraDetails(status: CameraStatus.CAMERA_DISCONNECTED));
stop();
}
}