DashcamConfig
Declaration
class DashcamConfigSummary
Configuration parameters for the dashcam feature. Non-zero values override defaults. Zero-valued fields use built-in defaults.
Basic Usage
val config = DashcamConfig(
framerate = 5,
maxBufferSeconds = 60,
maxBufferMemoryMb = 128
)
dashcamSession.configure(config)
See also
- DashcamSession.configure
Properties
| Name | Type | Summary |
|---|---|---|
| basePath | String? | |
| framerate | Int | Target FPS for buffering frames. The dashcam will subsample the source frame stream to this rate. If set to 0, defaults to 5 FPS. Default: 0 (defaults to 5 FPS) |
| maxBufferMemoryMb | Int | Maximum memory budget for the circular buffer in megabytes. When the buffer exceeds this size, the oldest frames are evicted. Whichever limit (time or memory) is hit first triggers eviction. If set to 0, defaults to 128 MB. Default: 0 (defaults to 128 MB) |
| maxBufferSeconds | Int | Maximum number of seconds of data to keep in the circular buffer. When the buffer exceeds this duration, the oldest frames are evicted. If set to 0, defaults to 60 seconds. Default: 0 (defaults to 60 seconds) |
If an absolute path is provided, that directory must be writable.
If left null, ARDK uses the public application path.
Default:
null