I just found out that restarting the camera causes the canvas to get stuck.But it renders the video as soon as i inspect the canvas element by right clicking in the browser. This is occurring exclusively in Google Chrome browser.We tested in Firefox and were able to start and stop video several times without getting stuck.
Fully Customizable Web SDK version
v 1.0.0 and 1.0.2
To Reproduce(If applicable)
Steps to reproduce the behavior:
Start the sample instant web sdk in google chrome
Start and stop camera several times. Feed should get stuck.
3.As soon as the feed gets stuck right click on the canvas and click inspect
Result: As soon as the inspect window opens the canvas starts rendering the video successfully.
Screenshots Device : Desktop
OS: [e.g. Ubuntu 18.04 and windows 10]
Browser: Chrome
Browser Version 89.0.4389.82
Additional context
We are integrating instant sdk in angular.
Since majority of users use chrome, it has become a significant issue that may hamper our delivery timeline.
Any assistance in this regard will be greatly appreciated.
Thanks in advance,
Md. Mehedi Hasan
hi @hasan.md
I had same problem with you.
However I found out that like you mentioned the feed stop getting stucked when you inspect,
for me, I feed stop getting stucked whenever i resize the video canvas.
I used updateVideoCanvasDimension(), and adjustRenderedVideoPosition() to resize.
Another thing you should also know is that it should not resize right after when video is on.
I used timeOut function from 100, 500 but 100~200 does not work very well. But value bigger than 300 worked fine! I think there is some delay problem about this issue.
I don’t know if it only works for me and i know this is not the direct solution, but I hope this helps.
@woasidh1 Could you provide any more info on this? Are you running both commands, or one/the other? Do you have to actually change the size/position, or can you just pass the current values? I haven’t been able to make this work consistently.
The only thing I’ve found that seems to make the video start back up again is moving the mouse around in the window. It doesn’t even have to be over the canvas, as soon as there is enough mouse movement it will activate the video every time within a few seconds. I haven’t found a way to programmatically work around this, though.