@georapbox/capture-photo-element
Advanced tools
Changelog
v5.0.0 (2024-10-16)
facingMode
property from "user"
to "environment"
, to be as much consistent as possible with the default camera facing mode of most mobile devices.facing-mode-button
slot and button to toggle the camera facing mode in favor of consistence with other camera properties thad don't have a dedicated button, such as camera-resolution
, torch
, pan
, tilt
and zoom
.facingMode
and cameraResolution
, properties or equivalent attributes after the video stream has started will not have any effect. You need to restart the video stream with the new properties. This is to avoid unnecessary camera hardware operations.getVideoInputDevices()
to get the list of available video input devices.deviceInputId
as argument to the startVideoStream()
method to start the video stream with a specific video input device.restartVideoStream()
to restart the video stream with the current properties.Changelog
v4.1.0 (2024-08-21)
torch
property to turn on/off the fill light if supported by the camera hardware.Changelog
v4.0.1 (2023-12-27)
camera-resolution
attribute was not provided. This was a regression introduced in v4.0.0
.Changelog
v4.0.0 (2023-12-27)
v4.0.0
, the video stream will not start automatically when the component is connected to the DOM. If you want to start the video stream automatically, you can use the auto-play
attribute.facingMode
from null
to "user"
.cameraResolution
from null
to ""
.pan
from null
to 0
.tilt
from null
to 0
.zoom
from null
to 1
.Changelog
v3.2.1 (2023-03-25)
camera-resolution
.Changelog
v3.2.0 (2023-03-23)
startVideoStream()
and stopVideoStream()
to start and stop the video stream respectively.calculate-file-size
attribute to optionally calculate the file size of the generated image and add it to the capture-photo:success
event detail object.devDependencies
.Changelog
v3.1.0 (2022-12-01)
actions
slot to add content inside the actions container element.Changelog
v3.0.0 (2022-11-25)
capture-photo:facing-mode-change
, capture-photo:camera-resolution-change
and capture-photo:zoom-change
. The reason for removing them is because they would be emitted every time a relevant property/attribute would change but there was no guarantee that the value updated, was supported by the camera hardware.pan
and tilt
properties to support panning and tilting respectively if supported by the camera harware.getSupportedConstraints()
, getTrackCapabilities()
and getTrackSettings()
.facing-mode-slot
by default and display it only if facingMode
is supported by device.Changelog
v2.0.0 (2022-11-18)
outputDisabled
and attribute output-disabled
to noImage
and no-image
accordingly.dist
folder from now on.