Click or drag to resize

VideoCameraState Property

Returns the current camera operational state.

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public VideoCameraState CameraState { get; }

Property Value

Type: VideoCameraState
The state of the camera.

Implements

IVideoCameraState
Exceptions
ExceptionCondition
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks
Returns one of the following status information:
  • 0 CameraRunning The camera is running and video frames are available for viewing and recording
  • 1 CameraRecording The camera is running and recording a video
  • 2 CameraError Camera error condition serious enough to prevent further operations (connection fail, etc.).

CameraIdle and CameraBusy are optional states. Free running cameras cannot be stopped and don't have a CameraIdle state. When those cameras are powered they immediately enter CameraRunning state. Some digital cameras or video systems may support operations that take longer to complete. While those longer operations are running the camera will remain in the state it was before the operation started.

The video camera state diagram is shown below:

See Also