1 Answer
- Newest
- Most votes
- Most comments
1
The issue you're experiencing with kvsWebrtcClientMasterGstSample appears to be related to connection handling and error recovery in the Amazon Kinesis Video Streams (KVS) with WebRTC SDK.
The error code 0x5a000025 suggests a connection-related problem. When the peer connection suddenly disconnects, the SDK is failing to reconnect, which is not the expected behavior. Normally, the SDK should attempt to reconnect automatically in such scenarios.
This could be due to a few reasons:
1. Network issues: The most common cause of WebRTC connection problems is network-related. The SDK might be struggling to re-establish the ICE (Interactive Connectivity Establishment) connection after the initial disconnect.
2. SDK version: You're using version 1.12.0, which may have known issues that have been resolved in later versions. It's always recommended to use the latest stable version of the SDK.
3. Error handling: The SDK might not be properly handling the disconnection event, preventing it from initiating the reconnection process.
4. Resource cleanup: The fact that you can't stop the running app with Ctrl+C suggests that the process is not properly releasing resources or responding to termination signals.
To troubleshoot and potentially resolve this issue:
1. Update to the latest version of the Amazon KVS WebRTC C SDK if possible.
2. Enable verbose logging by setting the environment variable AWS_KVS_LOG_LEVEL=1 before running your application. This will provide more detailed logs about the ICE candidates and connection states.
3. Check your network configuration to ensure that all required endpoints for KVS WebRTC are accessible, including STUN and TURN servers.
4. Implement proper error handling in your application to catch and respond to disconnection events.
5. If the issue persists, you may need to implement your own reconnection logic in your application to handle cases where the SDK fails to reconnect automatically.
Remember to always implement proper error handling and connection state management in your WebRTC applications to ensure robustness against network issues and unexpected disconnections.
Sources
Amazon Kinesis Video Streams with WebRTC operation returned status code: 0x5600000f | AWS re:Post
System requirements - Kinesis Video Streams
Relevant content
- AWS OFFICIALUpdated 4 months ago

any suggestion to handle restart ICE?