Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screenshare: check if the user is still presenter after gDM resolves #11730

Merged
merged 1 commit into from Mar 24, 2021

Conversation

prlanzarin
Copy link
Member

What does this PR do?

Add a check after gDM resolves (getDisplayMedia, screen sharing) to see whether the user is still the presenter; if they aren`t, just clean up the gDM stream and do nothing.

Closes Issue(s)

None.

Motivation

getDisplayMedia's promise cannot be aborted.

If the presenter gets changed while the user kept the getDisplayMedia browser picker open, accepting the getDisplayMedia prompt might get the previous presenter´s client-side state inconsistent as if they were sharing. Although screen sharing is a no-op in that scenario, the client side state should be preserved.

If the presenter gets changed while the user kept the getDisplayMedia browser picker open, accepting the getDisplayMedia prompt might get the previous presenter´s client-side state inconsistent as if they were sharing. The screen sharing is a no-op though

This adds a check after gDM resolves to see whether the user is still the presenter; if they aren`t, just clean up the gDM stream and make it a full no op
@antobinary antobinary added this to the Release 2.3 milestone Mar 24, 2021
@antobinary antobinary merged commit 8e251ef into bigbluebutton:develop Mar 24, 2021
@prlanzarin prlanzarin deleted the u23-clcxb branch April 21, 2021 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants