amazon-kinesis-video-streams-producer-sdk-cpp
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?
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!
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