Description: The attached PPTX has a video with 'Loop until stopped' setting checked in PowerPoint. The video doesn't loop in Impress. Steps to Reproduce: 1. Import the attached PPTX to Impress. 2. Start the presentation. 3. Watch the video. Actual Results: The video plays once. In the Media Playback panel in Impress the Repeat button is not pressed. Expected Results: The video should loop until stopped. Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.1.1 (X86_64) Build ID: 54047653041915e595ad4e45cccea684809c77b5 CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: en-IL (en_IL); UI: en-US Calc: threaded
Created attachment 202905 [details] PPTX with video loop
Does not work for me with Microsoft® PowerPoint® para Microsoft 365 MSO (versión 2508 compilación 16.0.19127.20192) de 64 bits
If the claim about looping was true, we should find an element like <p:showPr loop="1"> within the ppt/presProps.xml inside the .pptx file. However, I can't find any p:showPr element when searching through the extracted files with find . -name '*.xml' -exec grep -i --color=always 'showPr' {} + Nor do I find any hit for loop. The loop attribute is discussed here: https://stackoverflow.com/questions/77327048/python-pptx-module-setting-presentation-to-loop-until-escape Documentation in dotnet API: https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.linq.nonamespace.loop So per this and Miguel's testing, I think we can close as this seems to be a mistake.
Did you try to play the video in PowerPoint and compare it to Impress? In PowerPoint the video loops while in Impress it doesn't. slide1.xml has the following <p:video> element. Notice the repeatCount="indefinite" attribute: <p:video> <p:cMediaNode vol="80000"> <p:cTn id="7" repeatCount="indefinite" fill="hold" display="0"> <p:stCondLst> <p:cond delay="indefinite"/> </p:stCondLst> </p:cTn> <p:tgtEl> <p:spTgt spid="5"/> </p:tgtEl> </p:cMediaNode> </p:video>
Ah, I missed that repeatCount. What I see in office.com is that the video does not play automatically. If I click play, it loops. As online Office is different than desktop, I guess it could explain why it didn't loop for Miguel. Now I notice bug 149969 which is dealing with repeatCount. If I open attachment 202905 [details] in 7.5, which the fix for bug 149969 went into, the video does not loop. So the fix did not affect this particular file. It's the same behaviour in oldest of win64-7.4 repo as well. Let's ask Miklós, if he has ideas about why our import code is not picking up this particular XML structure.
Hm, that other bug was about handling the "loop" from an animation on the media shape, and this looks like something directly on the video shape? If so, that may be a starting point for parallel debugging. Unfortunately I don't have other ideas off the top of my head.