Camera Overview
Use DeviceCameraAPI to read camera information and request photo or video capture on a connected device.
Camera APIs
- Read
cameraFirmwareVersionandmaxVideoRecordDurationdirectly from the device. - Set the maximum video recording duration in minutes.
- Start photo taking with
CaptureMode.cameraor.ai, then stop the photo-taking session. - Start or stop video recording.
Photo and video requests return device status codes. They do not return an app-local media path. Transfer captured media separately with the Media File Import APIs.
Implement with AI Assistance
Build with AI
Implement this workflow with AI
Use the official Control the AIBuds Camera skill to adapt this workflow to your app.
Read and follow https://docs-aibuds.github.io/skills/control-aibuds-camera. Use it to implement Control the AIBuds Camera in this iOS project and verify the result.Available Guides
View Camera Firmware Version
Read the firmware version exposed by the connected device camera
Maximum Video Recording Duration
Read or set the maximum device video recording duration in minutes
Take Photos
Start and stop device photo taking in camera or AI capture mode
Record Video
Request the device to start or stop video recording