Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@georapbox/capture-photo-element

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@georapbox/capture-photo-element - npm Package Versions

2

5.0.0

Diff

Changelog

Source

v5.0.0 (2024-10-16)

Breaking Changes

  • Change default value of facingMode property from "user" to "environment", to be as much consistent as possible with the default camera facing mode of most mobile devices.
  • Remove the 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.
  • Changing the 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.

Other Changes

  • Add static method getVideoInputDevices() to get the list of available video input devices.
  • Support passing a deviceInputId as argument to the startVideoStream() method to start the video stream with a specific video input device.
  • Add instance method restartVideoStream() to restart the video stream with the current properties.
georapbox
published 4.1.0 •

Changelog

Source

v4.1.0 (2024-08-21)

  • Add support for torch property to turn on/off the fill light if supported by the camera hardware.
  • Replace parcel with esbuild for bundling.
  • Update ESLint to use flat configuration.
  • Use Prettier for code formatting.
  • Update dev dependencies.
georapbox
published 4.0.1 •

Changelog

Source

v4.0.1 (2023-12-27)

  • Fix bug that set the camera resolution to the lowest value when camera-resolution attribute was not provided. This was a regression introduced in v4.0.0.
georapbox
published 4.0.0 •

Changelog

Source

v4.0.0 (2023-12-27)

Breaking Changes

  • As of 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.
  • Change the default value of property facingMode from null to "user".
  • Change the default value of property cameraResolution from null to "".
  • Change the default value of property pan from null to 0.
  • Change the default value of property tilt from null to 0.
  • Change the default value of property zoom from null to 1.

Other Changes

  • Add types declarations.
  • Update dev dependencies.
georapbox
published 3.2.1 •

Changelog

Source

v3.2.1 (2023-03-25)

  • Fix throwing Uncaught TypeError when totally removing attribute camera-resolution.
georapbox
published 3.2.0 •

Changelog

Source

v3.2.0 (2023-03-23)

  • Add public methods startVideoStream() and stopVideoStream() to start and stop the video stream respectively.
  • Add 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.
  • Update devDependencies.
georapbox
published 3.1.0 •

Changelog

Source

v3.1.0 (2022-12-01)

  • Add a default un-named slot to add content inside the component.
  • Add actions slot to add content inside the actions container element.
georapbox
published 3.0.0 •

Changelog

Source

v3.0.0 (2022-11-25)

Breaking Changes

  • Remove the following events: 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.

Other Changes

  • Add pan and tilt properties to support panning and tilting respectively if supported by the camera harware.
  • Add public methods getSupportedConstraints(), getTrackCapabilities() and getTrackSettings().
  • Hide facing-mode-slot by default and display it only if facingMode is supported by device.
georapbox
published 2.0.0 •

Changelog

Source

v2.0.0 (2022-11-18)

Breaking Changes

  • Rename property outputDisabled and attribute output-disabled to noImage and no-image accordingly.
  • Only minified production builds will be included in the dist folder from now on.

Other Changes

  • Refactor to use private class fields.
  • Replace rollup.js with parcel.js for bundling.
  • Update dev dependencies.
georapbox
published 1.3.1 •

Changelog

Source

v1.3.1 (2022-10-20)

  • Fix issue #2
  • Ensure that when changing facing-mode, camera-resolution and zoom attributes, any side effect won't be triggered if the old value is the same as the new value passed.
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc