BB.Message.Camera.BeginCapture (bb_camera v0.1.1)

Copy Markdown View Source

A camera has started capturing.

Published when the driver confirms capture with BB.Camera.Hub.capture_started/2 - not when a consumer subscribes. A driver whose device fails to open never produces this message; it produces BB.Message.Camera.EndCapture with reason: :error instead. There is no window in which the system says it is capturing and isn't.

Carries no image data, as nothing published on BB.PubSub ever does.

Summary

Types

t()

@type t() :: %BB.Message.Camera.BeginCapture{
  stream_info: BB.Camera.StreamInfo.t(),
  subscriber_count: non_neg_integer()
}

Functions

new(frame_id, attrs)

@spec new(atom(), keyword()) :: {:ok, BB.Message.t()} | {:error, term()}