API Reference mob_camera v#0.2.0

Copy Markdown View Source

Modules

Native camera capture, live preview, and frame streaming — a Mob plugin (extracted from mob core in Wave 2).

A ready-to-run sample screen exercising MobCamera, shipped so a generated app can kick the tires the moment the plugin is activated. Declared in the plugin manifest's :screens, so the host's home can surface it by route without writing any code. Delete it (and the manifest entry) in a real app.

The native view showing the camera that MobCamera.start_video_stream/1 uses (the self-view of a video call): aspect-fill, mirrored for the front camera, the way people expect to see themselves. The encoded stream is never mirrored. Place it with MobCamera.preview_view/1.

The plugin's on-device proof (Mob.Plugin.SelfTest), run by mix mob.selftest and mob_ci for every activated plugin.