Closed qiangweihewu closed 1 year ago
Hello @qiangweihewu,
I'm not able to reproduce it by steps you provided.
The stopRecording method is called when leaving the room only if recording is in progress, ensuring that any ongoing video recording is stopped and saved automatically. This helps prevent the loss of recorded video in case the user forgets to manually click the 'stop recording' button.
rc.on(RoomClient.EVENTS.exitRoom, () => {
console.log('Room Client leave room');
if (rc.isRecording() || recordingStatus.innerText != '0s') {
console.log('Room Client save recording before to exit');
rc.stopRecording();
}
if (survey.enabled) {
leaveFeedback();
} else {
openURL('/newroom');
}
});
Just some questions:
Thank you!
Describe the bug
"Leave" button doesn't work
To Reproduce
Steps to reproduce the behavior:
Desktop - Mobile
iphone 13 ios 15 and windows chrome
My solution:
I changed the code in RoomClient.js to this and it works: