mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 22:22:50 -05:00
Allow autoplay in iframes
This commit is contained in:
@@ -10,7 +10,12 @@ function Background({ streams }) {
|
||||
return (
|
||||
<div>
|
||||
{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>
|
||||
)
|
||||
|
||||
@@ -59,7 +59,12 @@ function Overlay({ config, views, streams }) {
|
||||
)
|
||||
})}
|
||||
{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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user