Description
I observed that when ever I close all the subsessions, the screen sharing is also stopped automatically. I don’t know if this is internally intended, but it doesn’t work well for us.
In my implementation, I am simply calling the ssClient.closeAllSubsessions(), as shown in the snippet below, but it stops the screen sharing and the content I was sharing.
Browser Console Error
There is no console error
Which Web Video SDK version?
1.9.5
Video SDK Code Snippets
const closeAllSubSessions = useCallback(async () => {
if (ssClient) {
setRetryOpeningSubsessions(false);
await ssClient.closeAllSubsessions()
.catch((err) => {
console.log(err);
if (err.reason === 'only host can do the operation') {
message.error('Nur der Host kann den Vorgang ausführen');
} else {
message.error(err.reason)
}
});
console.log('Done');
console.log('retry-subs', retryOpeningSubsessions);
}
}, [ssClient, retryOpeningSubsessions]);
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Open subsessions
- Host remains in the main session
- Host starts sharing screen
- Host closes all subsessions
- See error