Skip to content

Conversation

@vqt123
Copy link

@vqt123 vqt123 commented Jan 14, 2026

Adds the ability to discover and switch between physical rear cameras on iOS devices.

New Methods

  • setZoom({ zoom }) - Set zoom level
  • switchCamera({ index }) - Switch to specific rear camera
  • getAvailableCameras() - Get camera count and current index

Closes #256

- Add setZoom() to programmatically control zoom level
- Add switchCamera() to switch between physical rear cameras
- Add getAvailableCameras() to query available camera count
- Discover all physical cameras (wide, ultra-wide, telephoto) instead of only wide
- Prevents iOS virtual multi-cam auto-switching behavior

This enables use cases like PPG (heart rate measurement) apps that need
to select a specific camera closest to the LED flash, and prevents iOS
from auto-switching cameras when lighting conditions change.

Closes capacitor-community#256
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.

Multi camera support (wide angle / telephoto)

1 participant