Skip to content

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Nov 8, 2022

For #134514

This PR allows autoplaying of audio/videos in webviews. However it disables autoplaying of non-muted audio/video without user interaction by setting autoplayPolicy in electron. Browsers automatically follow the same behavior

For microsoft#134514

This PR allows autoplaying of audio/videos in webviews. However it disables autoplaying of non-muted audio/video without user interaction by setting `autoplayPolicy` in electron. Browsers automatically follow the same behavior
@mjbvz mjbvz added this to the November 2022 milestone Nov 8, 2022
@mjbvz mjbvz self-assigned this Nov 8, 2022
@mjbvz mjbvz enabled auto-merge (squash) November 8, 2022 04:52
const allowRules = ['cross-origin-isolated;'];
const allowRules = ['cross-origin-isolated', 'autoplay'];
if (!isFirefox) {
allowRules.push('clipboard-read;', 'clipboard-write;');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The old code seemed like a bug since it was always setting allow twice

@mjbvz mjbvz merged commit 283aa61 into microsoft:main Nov 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants