mbr/elm-camera/1.2.0

NOTE: the latest version is 1.3.0

Camera.Preview

Configures live camera preview presentation.

type Fit
= Cover
| Contain

Controls how video is resized inside the preview element.

Cover fills the element and may crop video edges. Contain shows the complete video frame and may leave empty space around it.

fit : Fit -> Attribute msg

Sets how video is resized inside the preview element.