amazon-kinesis-video-streams-producer-sdk-cpp icon indicating copy to clipboard operation
amazon-kinesis-video-streams-producer-sdk-cpp copied to clipboard

Does the AWS Kinesis Video Streams Producer SDK or Gstreamer KVS Sink Support Synchronous Error Reporting via Callbacks?

Open soumya-prusty-genea opened this issue 8 months ago • 1 comments

Hi, I'm developing an application using the AWS Kinesis Video Streams Producer SDK (C++), and I'm planning to integrate a robust error-handling system for scenarios like KVS failures or network issues. I have a couple of questions:

Does the SDK or Gstreamer KVS Sink offer synchronous error reporting through callbacks (for instance, a stream error handler) that can notify me immediately when a KVS failure or network issue occurs?

Can these callbacks be used to trigger alternate logic (e.g., storing frames in DB) instead of sending frames to KVS? If these mechanisms exist, where can I find documentation or sample code illustrating how to properly implement and use these error callbacks?

Any help or pointers to documentation would be highly appreciated. Thank you!

soumya-prusty-genea avatar Mar 04 '25 20:03 soumya-prusty-genea

Hi Soumya, here are the default stream callbacks that can be set to handle and react to certain events and errors:

kvssink

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/src/gstreamer/KvsSinkStreamCallbackProvider.h

cpp

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/src/DefaultCallbackProvider.cpp

stefankiesz avatar Mar 12 '25 18:03 stefankiesz