I'm trying to automatically play and loop a slideshow on a website using a file hosted on OneDrive. I first tried embedding the PowerPoint file directly:
<iframe src="source.pptx?wdAr=1.7770833333333333" width="476px" height="288px" frameborder="0">
</iframe>
But it didn't work.
Next, I exported the slideshow as a video (.mp4) and tried embedding it using both <iframe> and <video> tags, with autoplay and loop parameters:
Using iframe:
<div style="text-align:center">
<iframe src="source.mp4?loop=1&autoplay=1" width="800px" height="550px" frameborder="0" allow="autoplay; loop">
</iframe>
</div>
Using video:
<div style="text-align:center">
<video>
<source src="source.mp4?loop=1&autoplay=1" allow="autoplay; loop" type="video/mp4">
</video>
</div>
Nothing is autoplaying.
What am I missing? How can I make a OneDrive-hosted slideshow or video autoplay and loop on my website?
src="source.mp4...if you knew the video is coming from OneDrive. You need to show (and use) a link that starts withhttps://onedrive.live.com/and it needs to point to a real testable video. (2) Are these instructions useful to you as a starting point for embed iniframe? (3) Why not store video on your own website for<video>or store PDF for<iframe>?