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

Fix screen sharing #652

Merged
merged 3 commits into from
Oct 24, 2022
Merged

Fix screen sharing #652

merged 3 commits into from
Oct 24, 2022

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 21, 2022

  • Make the embedded mode screen sharing a request-each-way rather than request-and-reply, since replies time out and so can't wait for the user.
  • Try normal screen sharing first, then fall back to using the widget API if it fails (for lack of a good way of detecting when we should be using the widget API).

Fixes #649
Requires matrix-org/matrix-react-sdk#9485
Requires matrix-org/matrix-js-sdk#2786

 * Make the embedded mode screen sharing a request-each-way rather
   than request-and-reply, since replies time out and so can't wait
   for the user.
 * Try normal screen sharing first, then fall back to using the widget
   API if it fails (for lack of a good way of detecting when we
   should be using the widget API).

Fixes #649
@dbkr dbkr added the T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems label Oct 21, 2022
@dbkr dbkr requested a review from a team as a code owner October 21, 2022 19:24
ElementWidgetActions.ScreenshareRequest,
{}
);
if (!reply.pending) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be awaited?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope - we await for the send which yields the reply, so pending is just a boolean flag on the reply object.

dbkr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Oct 24, 2022
* Add throwOnFail to groupCall.setScreensharingEnabled

For element-hq/element-call#652

* Update mediaHandler.ts
@dbkr dbkr merged commit b39b3c0 into main Oct 24, 2022
@dbkr dbkr deleted the dbkr/fixec_screenshare branch December 21, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen sharing broken in non-widget mode
2 participants