Android Camera Capture Configuration
Overview
Android-only feature
The camera capture configuration is an Android-specific feature and is not supported on iOS
Enhance your Android camera experience by customizing capture settings when taking photos or recording videos. The Median JavaScript Bridge allows you to:
- Adjust image and video quality to optimize file sizes
- Control whether media is saved to the Android gallery
Developer Demo
Display our demo page in your app to test during development https://median.dev/camera-settings/
Implementation Guide
Configuring Capture Quality
Android supports two capture quality settings:
- High (default) – Maximum resolution and file size
- Low – Reduces resolution to minimize file size
Learn more about the capture quality settings in the Android Developer Documentation.
Use the Median JSBridge to configure capture quality:
↔️Median JavaScript Bridge
Set camera capture quality to low:
median.camera.setCaptureQuality("low")
Saving Captured Media to the Gallery
By default, captured media is saved to the device's gallery. However, you can disable this setting, and your preference will persist across sessions.
To configure this setting, use the following Median JSBridge snippet:
↔️Median JavaScript Bridge
Prevent media from being stored in the gallery:
median.camera.saveToGallery(false)
Updated 3 days ago