VideoIngestFragmentConsumer¶
Bases: Thread
Kafka-based threaded consumer for processing VideoIngestFragment messages.
This consumer subscribes to a Kafka topic and dispatches them to per-key input queues managed by the application (e.g. one per camera).
on_new_key is a callback that is invoked when a new key (e.g. camera ID) is encountered. It should return a new input queue for that key, which will be used to enqueue messages for further processing (e.g. decoding and frame extraction).
It periodically pushes per-key ingestion latency metrics to a shared metrics queue, if provided, and supports gracefully stopping the consumer and releasing resources.
| Attributes: |
|
|---|