Hi everyone,
I have a requirement to embed a youtube video into the dashboard, with autoplay.
The embedding part works fine, following the example:
It works fine for the video I’m using, however I’m trying to generate this iframe (with allow=“…” and allowfullscreen keywords so as to allow fullscreen and also autoplay)
What the raw HTML looks like is:
<iframe width=“560” height=“315” src=“YouTube” frameborder=“0” allow=“autoplay; encrypted-media” allowfullscreen></iframe>
However, I am not sure how to do that in Dash. When I try to do a
html.Iframe(src=“YouTube”, style=dict(border=0), width=“100%”, height=“800”, allow=“autoplay;”)
It errors out, no “allow” keyword.
What is the correct way to do this in Dash?
Thanks,
Kelvin