mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 09:22:49 -05:00
Allow autoplay in iframes
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user