- Newest
- Most votes
- Most comments
Hello JosephR, thank you for describing the issue you're experiencing with Kinesis Video Streams with WebRTC where the video feed stops displaying new frames after a certain point, specifically when using TURN. Let's walk through the issue step by step:
Based on the information you've provided, here are some potential causes and solutions to consider (NOTE: Remember to test any changes in a non-production environment first to ensure they don't introduce new issues.)
ICE Connection Timeout: The issue might be related to ICE (Interactive Connectivity Establishment) connection timing out. To address this:
- Increase the ICE-related timeouts in your WebRTC configuration.
- Adjust the
iceConnectionCheckPollingIntervalto a higher value.
Network Conditions: Poor network conditions might be affecting the TURN relay. To mitigate this:
- Ensure your TURN server has sufficient bandwidth capacity.
- Check for any network restrictions or firewalls that might be interfering with the TURN connection.
Frame Size and Bandwidth: Although you mentioned it's not exceeding the TURN server quota, the frame size seems to impact the number of frames displayed. To optimize:
- Further compress your video frames without sacrificing too much quality.
- Consider using a lower resolution or frame rate to reduce bandwidth requirements.
WebRTC Configuration: There might be an issue with your WebRTC configuration. To address this:
- Review your SDP (Session Description Protocol) configuration.
- nsure that your offer and answer SDPs are compatible and include the necessary media codecs.
Browser Limitations: Since you've tested with both Chrome and Firefox, it's less likely to be a browser-specific issue, but it's worth considering:
- Test with different browser versions.
- Check if there are any known WebRTC issues with the browser versions you're using.
AWS TURN Server Limitations: There might be limitations specific to AWS TURN servers. To investigate:
- Review the AWS documentation for any known limitations or quotas related to TURN servers.
- Consider testing with a different TURN server to isolate if the issue is specific to AWS TURN servers.
Logging and Debugging: To get more insights into the issue:
- Enable detailed logging for your WebRTC application.
- Use WebRTC debugging tools to analyze the connection and identify where the stream is failing.
To verify if the problem has been solved:
- Implement one or more of the suggested solutions.
- Test your video stream with various video lengths and frame rates.
- Monitor the number of frames displayed and check if it consistently exceeds the previous limit.
- Use browser developer tools to inspect the WebRTC connection and ensure frames are being received continuously.
If the issue persists after trying these solutions, I would recommend contacting AWS Support for more in-depth assistance. They can provide specific guidance based on your account and configuration.
Additional Resources:
Troubleshooting Amazon Kinesis Video Streams with WebRTC - Kinesis Video Streams
Troubleshooting Kinesis Video Streams - Amazon Kinesis Video Streams
Write and examine the code - Amazon Kinesis Video Streams
Hopefully this provides some direction towards the resolution of your issue.
Best wishes and thank you for using AWS!
Brian
Relevant content
- asked a year ago
