Skip to content

Conversation

enzogireaud
Copy link

✨ Features:

  • Fixed camera front/back selection for web platform
  • Added structured implementation with static constants
  • Enhanced type safety with proper enum usage
  • Added persistent _facingMode property for state management

🔧 Technical improvements:

  • Added _FORWARD and _BACK static constants
  • Fixed broken camera direction logic in video constraints
  • Consistent camera direction application across all configurations
  • Proper enum-based camera direction setting

�� Bug fixes:

  • Fixed web camera direction not working due to facingMode: undefined
  • Resolved inconsistent camera direction application

Based on @capacitor/[email protected] with community solution improvements

OS-pedrogustavobilro and others added 5 commits September 9, 2025 16:24
✨ Features:
- Fixed camera front/back selection for web platform
- Added structured implementation with static constants
- Enhanced type safety with proper enum usage
- Added persistent _facingMode property for state management

🔧 Technical improvements:
- Added _FORWARD and _BACK static constants
- Fixed broken camera direction logic in video constraints
- Consistent camera direction application across all configurations
- Proper enum-based camera direction setting

📦 Package updates:
- Updated package name to @enzogireaud/capacitor-barcode-scanner
- Version bumped to 2.1.1
- Added enhanced changelog documentation

�� Bug fixes:
- Fixed web camera direction not working due to facingMode: undefined
- Resolved inconsistent camera direction application

Based on @capacitor/[email protected] with community solution improvements
- Update package name from @enzogireaud/capacitor-barcode-scanner to @capacitor/barcode-scanner
- Change author from personal to Capacitor Community
- Update repository URLs to point to ionic-team/capacitor-plugins
- Update issue tracker to official repository
- Modify description to be more generic and professional
- Update import examples in documentation to use official package name

This prepares the package to be merged into the official Capacitor plugin ecosystem.
- Improve camera front/back selection reliability in browser environment
- Add structured implementation with static constants for better maintainability
- Fix broken camera direction logic that was previously ignored in video constraints
- Implement persistent _facingMode property with proper state management
- Ensure consistent camera direction application across all scanner configurations

🔧 Technical improvements:
- Added _FORWARD and _BACK static constants for consistent camera mode definition
- Enhanced type safety with proper enum usage instead of magic numbers
- Fixed facingMode: undefined issue that prevented camera direction from working
- Consistent application of camera settings throughout scanner lifecycle

🐛 Bug fixes:
- Resolved web camera direction not working due to improper video constraints
- Fixed inconsistent camera direction application between scanner components
- Enhanced camera direction to work robustly in most browser environments
- Improve camera front/back selection reliability in browser environment
- Add structured implementation with static constants for better maintainability
- Fix broken camera direction logic that was previously ignored in video constraints
- Implement persistent _facingMode property with proper state management
- Ensure consistent camera direction application across all scanner configurations

🔧 Technical improvements:
- Added _FORWARD and _BACK static constants for consistent camera mode definition
- Enhanced type safety with proper enum usage instead of magic numbers
- Fixed facingMode: undefined issue that prevented camera direction from working
- Consistent application of camera settings throughout scanner lifecycle

🐛 Bug fixes:
- Resolved web camera direction not working due to improper video constraints
- Fixed inconsistent camera direction application between scanner components
- Enhanced camera direction to work robustly in most browser environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants