quickmeet
quickmeet copied to clipboard
getUserMedia() must be called once only
You call navigator.mediaDevices.getUserMedia every time someone connects. It works in Chrome, but not in Safari on iOS/iPadOS.
On iOS every next navigator.mediaDevices.getUserMedia call will make previous stream unusable. Therefore, you need to call getUserMedia only once at the beginning and then reuse your mystream variable.