OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::RecordingHoldOptions

How one of a rule's recording actions holds the camera's recording when recording holds are on (Recorder::EnableRecordingHolds()). Added in 12.0.42.

Set with RuleEngine::SetRecordingHold(). Held beside the rule, keyed by the action's index, the same way a rule's reference is, so RecordingAction keeps the layout every 12.0 program was built with. It has no effect while recording holds are off.

Public attributes

post_roll

std::chrono::milliseconds post_roll {0}

How long a RecordingAction::Mode::kWhileActive hold stays after its rule leaves hold_while. An activation inside it keeps the hold, in the same file and with no gap. Zero releases at once. Ignored for RecordingAction::Mode::kFixedDuration.

maximum

std::chrono::milliseconds maximum {0}

The longest a RecordingAction::Mode::kWhileActive hold lasts, counted from the activation that took it, so a latching alarm cannot record all weekend. Zero means no maximum. A rule its maximum released holds again only at its next activation.

hold_while

RecordingHoldWhile hold_while = RecordingHoldWhile::kActive

Which states hold the recording.