Open krokhale opened 6 years ago
Same problem here, I downgraded the SDK to 2.10 and everything works fine but it will be nice if we can fix that in the latest version.
True, but 2.10 crashes on Oreo, so it's now a choice between the two.
Hi @krokhale @renanpupin Did you resolve this issue or find any workaround?
Hi @krokhale
With the 2.13. I was debugging here and found some tips but nothing that resolve the problem.
Help!
@krokhale just for curiosity, what's the consequences if I remove the 'mPublisher.destroy()'?
From what I can tell, .destroy()
tries to re-free a resource that was freed when the component is removed. But it appears that it also stops the camera. When I commented it out, the camera wouldn't close. My solution was to keep it commented out but then also call .disconnectAll
.
Pull request indicating the change. https://github.com/callstack/react-native-opentok/pull/88
The readme should probably be updated to indicate the necessity of .disconnectAll
.
Just tested. The call disconnect is crashing on all android versions in the latest react-native-opentok 2.12
Both .disconnectAll and .disconnect are crashing.