Allow autoplay in iframes

This commit is contained in:
Max Goodhart
2020-07-28 13:39:46 -07:00
parent afb9d025c4
commit 8a62977758
2 changed files with 12 additions and 2 deletions

View File

@@ -10,7 +10,12 @@ function Background({ streams }) {
return ( return (
<div> <div>
{backgrounds.map((s) => ( {backgrounds.map((s) => (
<BackgroundIFrame key={s._id} src={s.link} sandbox="allow-scripts" /> <BackgroundIFrame
key={s._id}
src={s.link}
sandbox="allow-scripts"
allow="autoplay"
/>
))} ))}
</div> </div>
) )

View File

@@ -59,7 +59,12 @@ function Overlay({ config, views, streams }) {
) )
})} })}
{overlays.map((s) => ( {overlays.map((s) => (
<OverlayIFrame key={s._id} src={s.link} sandbox="allow-scripts" /> <OverlayIFrame
key={s._id}
src={s.link}
sandbox="allow-scripts"
allow="autoplay"
/>
))} ))}
</div> </div>
) )