AudioFrameRewindAudio Property

Determines whether audio is automatically rewinded to start after playing. Read/write Boolean.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.7.0.0 (21.7)
Syntax
public bool RewindAudio { get; set; }

Property Value

Type: Boolean

Implements

IAudioFrameRewindAudio
Examples
[C#]
using (Presentation pres = new Presentation())
{
    ISlide slide = pres.Slides[0];

    // Add Audio Frame
    IAudioFrame audioFrame = slide.Shapes.AddAudioFrameLinked(50, 50, 100, 100, "sampleaudio.wav");

    // Set Audio to play across the slides
    audioFrame.PlayAcrossSlides = true;

    // Set Audio to automatically rewind to start after playing
    audioFrame.RewindAudio = true;

    pres.Save("AudioFrame_out.pptx", SaveFormat.Pptx);
}
See Also