amazon-kinesis-video-streams-webrtc-sdk-js
amazon-kinesis-video-streams-webrtc-sdk-js copied to clipboard
call get ice servers when offer is received to avoid stale ice server…
… credential
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This fixes the issue of stale ice server credentials but RTCPeerConnection.setConfiguration() is not supported in Firefox.
So a tradeoff with this approach is that the startup time might be increased due to having to fetch a new ICEServerConfig before the browser can start gathering ICE candidates on the master side.
- Am I perhaps missing something on the potential latency impact?
- Are there any alternative ways to accomplish the same thing (having non-stale TURN credentials)? Perhaps the master could periodically refresh the TURN credentials instead? Or even keep a pool of non-stale credentials?