Copy link to clipboard
Copied
Hello,
I am trying to add a looping video inside an interactive PDF using Adobe Acrobat Pro 2024.1, but the loop function is not working. Here’s what I have done so far:
✅ I exported an interactive PDF from InDesign (MP4 video embedded).
✅ I used "Add Rich Media" in Adobe Acrobat Pro to add the video.
✅ Playback Style is set to "Play Content in the Document" (not floating).
✅ "Enable When: The page containing the content is visible" is selected.
✅ Right-clicking the video does not show a loop option.
✅ I tried adding JavaScript via "Document JavaScripts" using this code:
function loop() {
var media = this.getAnnots({nPage: 0});
for (var i = 0; i < media.length; i++) {
if (media[i].type == "RichMedia") {
media[i].media.play();
media[i].media.loop = true;
}
}
}
loop();
Even after applying this, the video does not loop. It plays once and then stops.
💡 Questions:
I would appreciate any insights or alternative solutions. Thank you!
Copy link to clipboard
Copied
Hello,
I hope you're doing well, and we apologize for the delayed response and the trouble.
Currently, Adobe Acrobat Pro does not offer a built-in feature to enable video looping within PDFs. The JavaScript approach you've attempted is a logical step; however, due to the constraints of Acrobat's media handling capabilities, such scripts may not achieve the desired looping effect.
Alternative Solutions:
For more detailed guidance on adding multimedia elements to PDFs, you can refer to Adobe's official documentation: https://adobe.ly/4gtVPqo
I hope this helps, also, You can utilize the Adobe Wish form to register a request: https://adobe.ly/4hmBX9W
Thanks,
Anand Sri.
Copy link to clipboard
Copied
Hello,
I hope you're doing well, and we apologize for the delayed response and the trouble.
Currently, Adobe Acrobat Pro does not offer a built-in feature to enable video looping within PDFs. The JavaScript approach you've attempted is a logical step; however, due to the constraints of Acrobat's media handling capabilities, such scripts may not achieve the desired looping effect.
Alternative Solutions:
For more detailed guidance on adding multimedia elements to PDFs, you can refer to Adobe's official documentation: https://adobe.ly/4gtVPqo
I hope this helps, also, You can utilize the Adobe Wish form to register a request: https://adobe.ly/4hmBX9W
Thanks,
Anand Sri.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now