Allow widgets to autoplay media

This is useful for e.g. webcam streams in widgets.

Signed-off-by: Willem Mulder <willemmaster@hotmail.com>
pull/21833/head
Willem Mulder 2018-12-14 14:26:35 +01:00 committed by J. Ryan Stinnett
parent 7ed9559ad7
commit d304c35b38
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ export default class AppTile extends React.Component {
// Additional iframe feature pemissions // Additional iframe feature pemissions
// (see - https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes and https://wicg.github.io/feature-policy/) // (see - https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes and https://wicg.github.io/feature-policy/)
const iframeFeatures = "microphone; camera; encrypted-media;"; const iframeFeatures = "microphone; camera; encrypted-media; autoplay;";
const appTileBodyClass = 'mx_AppTileBody' + (this.props.miniMode ? '_mini ' : ' '); const appTileBodyClass = 'mx_AppTileBody' + (this.props.miniMode ? '_mini ' : ' ');