PPT无法读取动画的播放时间

开发环境:Java8 Win10系统
工具包版本 Aspose.Slide 19.11
图1.png (12.0 KB)

问题描述:
PPT里无法读取动画的播放时间 ,代码如上图所示。
有没有方案准确读出动画的播放时间呢?

@ciyuan9,

我已观察到您共享的信息,并请您共享工作示例代码以及代表问题的源代码演示。 我们将能够在提供所需信息方面进一步进行调查。

示例代码

package com.xh.slides.examples.Slides.Shapes;

import com.aspose.slides.IAnimationTimeLine;
import com.aspose.slides.ISlide;
import com.aspose.slides.Presentation;

/**
 * @description 读取幻灯片播放时间
 */
public class AnimationInfo {

    public static void main(String[] args) {
        Presentation pres = new Presentation("E:/document/动画.pptx");
        ISlide sld = pres.getSlides().get_Item(0);
        IAnimationTimeLine timeLine = sld.getTimeline();

        timeLine.getMainSequence().forEach(effect -> {
            System.out.println("动画耗时:" + effect.getTiming().getDuration());

        });
    }

}

运行效果:

动画耗时:NaN

Process finished with exit code 0

使用文件见附件
动画.zip (25.1 KB)

开发环境:Java8 Win10系统
工具包版本Aspose.Slide 19.11

问题描述:
PPT里无法读取动画的播放时间

@ mudassir.fayyaz

@ciyuan9,

我已经处理过您共享的演示文稿文件。 我们的问题跟踪系统中已创建了ID为** SLIDESJAVA-37876 **的问题,以调查该问题。 该线程已与问题关联,因此一旦问题解决,您可能会收到通知。

The issues you have found earlier (filed as SLIDESJAVA-37876) have been fixed in this update.