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

Make screen sharing works on Chrome using getDisplayMedia() #1276

Merged
merged 3 commits into from
Mar 27, 2020

Conversation

mjattiot
Copy link
Contributor

@mjattiot mjattiot commented Mar 20, 2020

Screen sharing has never been working on recent versions of Chrome (fixes element-hq/element-web#6181).

This PR intends to use the new API getDisplayMedia() to make it works on all recent browsers : https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia

Signed-off-by: Maxime Jattiot mjattiot@opensense.fr

Signed-off-by: mjattiot <mjattiot@opensense.fr>
Signed-off-by: mjattiot <mjattiot@opensense.fr>
Signed-off-by: mjattiot <mjattiot@opensense.fr>
@mjattiot mjattiot marked this pull request as ready for review March 20, 2020 14:23
@turt2live turt2live requested a review from a team March 20, 2020 15:45
@jryans
Copy link
Collaborator

jryans commented Mar 23, 2020

MDN support info is apparently outdated, as it seems Safari 13 on desktop is supported as well.

We should test in all 3 supported browsers as part of the review to be sure it does indeed work.

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

The change itself looks fine, and testing it feels non-trivial on all three browsers. https://caniuse.com/#search=getDisplayMedia also says Safari is not supported.

@jryans where are you seeing that it is supported? If it is in fact supported and all the sources are wrong, I'd be inclined to merge this and test it live instead of trying to test it ourselves. This is a low-traffic part of the repo and this is a relatively atomic change to back out.

@turt2live turt2live requested a review from jryans March 27, 2020 01:06
@mjattiot
Copy link
Contributor Author

mjattiot commented Mar 27, 2020

Well the function exists on Safari 13:
Screenshot 2020-03-27 at 09 37 42

However I tried to make it works on a console without success, nothing happens when I click:
Screenshot 2020-03-27 at 09 42 22

And it seems Riot on Safari doesn't currently support screensharing anyway ...
Screenshot 2020-03-27 at 09 50 22

Still this feature is a must have for Chrome and supported by Firefox as well. So I campaign for a merge ! :)

Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Ah okay, my evidence for Safari was:

Anyway, as already mentioned, we don't support Safari for VoIP today, so there's no regression to worry about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screensharing no longer works in chrome 64
3 participants