Forum Discussion
Embedded Youtube Video in Dashboard - auto play
- 5 years ago
Hi Eyelyn9,
Thanks for that, that worked, but I also went a step further and adapted your code and tried with youtube.
I got it working, so I can embed youtube videos the same way, the turning point was a difference in url structure:
<iframe width="420" height="345" src="https://www.youtube.com/watch?v=whatever?autoplay=1"></iframe>
Does not work, but the below:<iframe width="420" height="345" src="https://www.youtube.com/embed/whatever?autoplay=1"></iframe>
does work, the difference was watch vs embed in the url structure.
Hope this may help someone.
Hi thyjones ,
According to my test, at this stage we have not been able to successfully embed YouTube hosted videos.
But as a workaround,you could use create a video content from Vimeo via htmlViewer visual in Power BI Desktop.
The necessary code is ?autoplay=1 and allow="autoplay"
Here is the example code:
<iframe src="https://player.vimeo.com/video/76979871?autoplay=1" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Then publish the report to service ,pin the visual to dashboard, the video could auto play.
Refer to :
How to Create, Host and Embed Videos in Power BI — DiscoverEI
Autoplaying and looping embedded videos – Vimeo Help Center
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- thyjones5 years ago
Helper I
Hi Eyelyn9,
Thanks for that, that worked, but I also went a step further and adapted your code and tried with youtube.
I got it working, so I can embed youtube videos the same way, the turning point was a difference in url structure:
<iframe width="420" height="345" src="https://www.youtube.com/watch?v=whatever?autoplay=1"></iframe>
Does not work, but the below:<iframe width="420" height="345" src="https://www.youtube.com/embed/whatever?autoplay=1"></iframe>
does work, the difference was watch vs embed in the url structure.
Hope this may help someone.