0

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?

1
  • Are you sure the posted code recreates your actual problem? You can't have used src="source.mp4... if you knew the video is coming from OneDrive. You need to show (and use) a link that starts with https://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 in iframe? (3) Why not store video on your own website for <video> or store PDF for <iframe>? Commented Oct 17 at 15:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.