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

Disables HardwareMediaKeyHandling #180

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Disables HardwareMediaKeyHandling #180

merged 2 commits into from
Apr 30, 2021

Conversation

tomvaneyck
Copy link
Contributor

This should fix element-hq/element-web#15704 as suggested by tretum.

PS: This is a quick fix. IMO it should be possible to add (via a config file or in-app settings) random flags like this one that electron supports. But that is a different story.

@SimonBrandner
Copy link
Contributor

@tomvaneyck, thanks for working on this! Could you please include a sign-off as described here?

@SimonBrandner
Copy link
Contributor

SimonBrandner commented Apr 2, 2021

Also, could this or something similar be done in the react-sdk? I think there is a similar problem in browsers, right?

Ideally, this would be done for the specific video/audio element, but I don't know if that is even possible

Signed-off-by: Tom Van Eyck <tom.vaneyck@telenet.be>
@tomvaneyck
Copy link
Contributor Author

The spec responsible for this functionality is called the Media Session API. The spec doesn't say anything about disabling this per element, as the browser is responsible for this subsystem. This is confirmed in this issue.

If this should be set on a per element basis, the spec would need to change.

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Tom Van Eyck <tom.vaneyck@telenet.be>
@t3chguy t3chguy requested a review from a team April 29, 2021 11:55
Copy link
Contributor

@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.

Seems reasonable, thanks for working on this! 😄

@jryans jryans merged commit 20e4459 into element-hq:develop Apr 30, 2021
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.

Windows client captures the media keys
3 participants