Encountering an issue with the local stream from the camera. The process unfolds as follows:
- The caller initiates a call.
- A "Disconnect" button becomes visible for the caller.
- The CALLEE is prompted by the browser to grant permission.
- The CALLER clicks on the disconnect button, sending a hangup signal to the callee.
- The callee's client peer connection is cleared up and variables are reset.
- The callee clicks on 'Allow' in the permission prompt from step 3.
- Even after the call is terminated by the caller, the local camera of the callee remains open until the page is refreshed.
Is there a method to automatically close the permission dialog when the caller sends a 'hangup' signal and the callee resets the local peer connection?
If you have any alternative suggestions on how to address this issue, please share them.