# `BB.LiveView.Camera.BBCamera`
[🔗](https://github.com/beam-bots/bb_liveview/blob/main/lib/bb/live_view/camera/bb_camera.ex#L5)

The default `BB.LiveView.Camera` implementation: the real `bb_camera`, and
`bb_camera_webrtc` to stream it.

Every call dispatches on a module held in a variable rather than written
inline, and every entry point is guarded by an availability check. That is
what makes both packages genuinely optional dependencies of this library:
with them absent nothing here resolves a missing module, the compiler has no
undefined call to warn about, and a dashboard for a robot with no cameras
behaves exactly as it did before cameras existed.

# `watch`

```elixir
@type watch() :: %{
  robot: module(),
  camera: atom(),
  ref: reference(),
  signaling: struct()
}
```

A stream: what `BB.Camera.WebRTC.unwatch/3` needs, and the signalling
channel this process is the browser's peer on.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
