Basic Usage
Camera class automatically detects your camera’s brand and uses the appropriate vendor-specific implementation. The example assumes the body advertises those controls and remote capture; camera model, USB mode, and shooting mode can change the available surface.
For application UIs, use the shared control model:
getCapabilities() exposes current choices across vendors, and shutterSpeed
covers exposure duration and shutter angle without implicit mode changes. Multiple USB
bodies require an explicit device filter.
For a generic or Olympus body, inspect the live standard-property inventory first:
How It Works
When you callconnect(), Darkgrade Slate:
- Scans for connected USB devices
- Identifies the camera’s vendor ID
- Selects the appropriate vendor-specific implementation:
- Sony ⍺ Series →
SonyCamerawith live view, video recording, SDIO - Nikon Z Series →
NikonCamerawith extended properties - Canon EOS R Series →
CanonCamerawith remote control - Olympus and other PTP cameras →
GenericCamerawith a capability-driven standard-property inventory
- Sony ⍺ Series →
- Opens that driver’s session. Read
getCapabilities()for current controls and write guards.
Common Examples
Camera Settings
Event Handling
Live View
Capture live view on supported Sony, Nikon or Canon bodies:Video Recording
Start and stop video recording on supported Sony, Nikon or Canon bodies with usable media:File Management
List and download files from the camera:Advanced Property Access
Access vendor-specific properties directly:Advanced Usage
Typed protocol access
Applications instantiateCamera and use its shared control model. Protocol work can
use the existing typed definitions without maintaining an application vendor map:
Manual Configuration
Specify device filters and logging options:Next Steps
- Learn about PTP - Understanding the protocol
- Check Feature Compatibility - See what your camera supports
- Explore the Camera API - Complete API reference