OptrisOptrisDocumentation

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

optris::sdk::rec::RecordingHoldEvent

A recording hold taken or let go. Delivered to Recorder::OnRecordingHold() on the SDK's alarm action thread, never on the camera's frame thread. Added in 12.0.42.

Public attributes

phase

RecordingHoldPhase phase = RecordingHoldPhase::kAdded

Taken or let go.

rule_id

uint64_t rule_id = 0

The rule, or 0 for the application.

action_index

size_t action_index = 0

Which of the rule's actions; 0 for the application.

kind

RecordingHoldKind kind = RecordingHoldKind::kApplication

Who held it: the application, or which kind of rule action.

opened_recording

bool opened_recording = false

On kAdded: this hold opened the recording. False when it joined one that other holds already kept open.

ended_recording

bool ended_recording = false

On kReleased: it was the last hold, so its release ended the recording. Always true for RecordingHoldRelease::kEnded.

reason

RecordingHoldRelease reason = RecordingHoldRelease::kNone

On kReleased, why; RecordingHoldRelease::kNone on kAdded.

path

std::string path

The recording's file, as the first hold opened it.