Description
We’re experiencing issues where some users are unable to successfully start their camera and microphone using the Video SDK. In some cases, users report significantly delayed camera/microphone activation, while in others, the camera/microphone fails to start entirely.
After analysis, this is a known issue. In edge cases, it can cause media initialization to fail, resulting in audio and video not starting properly. You can upgrade to version 2.2.0, where we’ve fixed this issue.
Hi @vic.yang ,
Could you let us know the conditions under which this bug occurs? We’ve noticed that the frequency of this issue has increased recently, but we’re not sure why.
Recently, we made the following changes:
Switched from canvas rendering to video-player rendering
Enabled video WebRTC for headless Chrome browsers (This might be unrelated, but could it affect regular users who are not using headless browsers?)
@vic.yang
If we set a timeout when starting the camera and microphone, and automatically retry if the startup hasn’t succeeded within that time, would this temporarily help mitigate the slow CAM/MIC startup issue?
If so, what timeout duration would you recommend for the camera and microphone?
Alternatively, is there another workaround you’d suggest for this problem?
Regarding the timing of the retry, I’m not sure how you’re detecting that the camera and microphone initialization has failed. Since startup times vary across different devices, it’s difficult to define a consistent timeout duration.
Hi @vic.yang,
We don’t determine whether the camera and microphone initialization failed — instead, whenever starting the camera or microphone takes longer than the timeout duration (we’re currently setting it to around 4–5 seconds), we simply restart the process. (We try starting the cam/mic again)
Would this approach have any side effects or potentially affect normal functionality?