com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class AudioFrame

    • Method Detail

      • getAudioCdStartTrack

        public final int getAudioCdStartTrack()

        Returns or sets a start track index. Read/write int.

        Specified by:
        getAudioCdStartTrack in interface IAudioFrame
      • setAudioCdStartTrack

        public final void setAudioCdStartTrack(int value)

        Returns or sets a start track index. Read/write int.

        Specified by:
        setAudioCdStartTrack in interface IAudioFrame
      • getAudioCdStartTrackTime

        public final int getAudioCdStartTrackTime()

        Returns or sets a start track time. Read/write int.

        Specified by:
        getAudioCdStartTrackTime in interface IAudioFrame
      • setAudioCdStartTrackTime

        public final void setAudioCdStartTrackTime(int value)

        Returns or sets a start track time. Read/write int.

        Specified by:
        setAudioCdStartTrackTime in interface IAudioFrame
      • getAudioCdEndTrack

        public final int getAudioCdEndTrack()

        Returns or sets a last track index Read/write int.

        Specified by:
        getAudioCdEndTrack in interface IAudioFrame
      • setAudioCdEndTrack

        public final void setAudioCdEndTrack(int value)

        Returns or sets a last track index Read/write int.

        Specified by:
        setAudioCdEndTrack in interface IAudioFrame
      • getAudioCdEndTrackTime

        public final int getAudioCdEndTrackTime()

        Returns or sets a last track time. Read/write int.

        Specified by:
        getAudioCdEndTrackTime in interface IAudioFrame
      • setAudioCdEndTrackTime

        public final void setAudioCdEndTrackTime(int value)

        Returns or sets a last track time. Read/write int.

        Specified by:
        setAudioCdEndTrackTime in interface IAudioFrame
      • getHideAtShowing

        public final boolean getHideAtShowing()

        Determines whether an AudioFrame is hidden. Read/write boolean.

        Specified by:
        getHideAtShowing in interface IAudioFrame
      • setHideAtShowing

        public final void setHideAtShowing(boolean value)

        Determines whether an AudioFrame is hidden. Read/write boolean.

        Specified by:
        setHideAtShowing in interface IAudioFrame
      • getPlayLoopMode

        public final boolean getPlayLoopMode()

        Determines whether an audio is looped. Read/write boolean.

        Specified by:
        getPlayLoopMode in interface IAudioFrame
      • setPlayLoopMode

        public final void setPlayLoopMode(boolean value)

        Determines whether an audio is looped. Read/write boolean.

        Specified by:
        setPlayLoopMode in interface IAudioFrame
      • getPlayAcrossSlides

        public final boolean getPlayAcrossSlides()

        Determines whether audio is playing across the slides. Read/write boolean.


          
          Presentation pres = new Presentation();
          try {
              ISlide slide = pres.getSlides().get_Item(0);
              // Add Audio Frame
              IAudioFrame audioFrame = slide.getShapes().addAudioFrameLinked(50, 50, 100, 100, "sampleaudio.wav");
              // Set Audio to play across the slides
              audioFrame.setPlayAcrossSlides(true);
              // Set Audio to automatically rewind to start after playing
              audioFrame.setRewindAudio(true);
              pres.save("AudioFrame_out.pptx", SaveFormat.Pptx);
          } finally {
              if (pres != null) pres.dispose();
          }
          
        Specified by:
        getPlayAcrossSlides in interface IAudioFrame
      • setPlayAcrossSlides

        public final void setPlayAcrossSlides(boolean value)

        Determines whether audio is playing across the slides. Read/write boolean.


          
          Presentation pres = new Presentation();
          try {
              ISlide slide = pres.getSlides().get_Item(0);
              // Add Audio Frame
              IAudioFrame audioFrame = slide.getShapes().addAudioFrameLinked(50, 50, 100, 100, "sampleaudio.wav");
              // Set Audio to play across the slides
              audioFrame.setPlayAcrossSlides(true);
              // Set Audio to automatically rewind to start after playing
              audioFrame.setRewindAudio(true);
              pres.save("AudioFrame_out.pptx", SaveFormat.Pptx);
          } finally {
              if (pres != null) pres.dispose();
          }
          
        Specified by:
        setPlayAcrossSlides in interface IAudioFrame
      • getRewindAudio

        public final boolean getRewindAudio()

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


          
          Presentation pres = new Presentation();
          try {
              ISlide slide = pres.getSlides().get_Item(0);
              // Add Audio Frame
              IAudioFrame audioFrame = slide.getShapes().addAudioFrameLinked(50, 50, 100, 100, "sampleaudio.wav");
              // Set Audio to play across the slides
              audioFrame.setPlayAcrossSlides(true);
              // Set Audio to automatically rewind to start after playing
              audioFrame.setRewindAudio(true);
              pres.save("AudioFrame_out.pptx", SaveFormat.Pptx);
          } finally {
              if (pres != null) pres.dispose();
          }
          
        Specified by:
        getRewindAudio in interface IAudioFrame
      • setRewindAudio

        public final void setRewindAudio(boolean value)

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


          
          Presentation pres = new Presentation();
          try {
              ISlide slide = pres.getSlides().get_Item(0);
              // Add Audio Frame
              IAudioFrame audioFrame = slide.getShapes().addAudioFrameLinked(50, 50, 100, 100, "sampleaudio.wav");
              // Set Audio to play across the slides
              audioFrame.setPlayAcrossSlides(true);
              // Set Audio to automatically rewind to start after playing
              audioFrame.setRewindAudio(true);
              pres.save("AudioFrame_out.pptx", SaveFormat.Pptx);
          } finally {
              if (pres != null) pres.dispose();
          }
          
        Specified by:
        setRewindAudio in interface IAudioFrame
      • getEmbedded

        public final boolean getEmbedded()

        Determines whether a sound is embedded to a presentation. Read-only boolean.

        Specified by:
        getEmbedded in interface IAudioFrame
      • getLinkPathLong

        public final java.lang.String getLinkPathLong()

        Returns or sets the name of an audio file which is linked to an AudioFrame. Read/write String.

        Specified by:
        getLinkPathLong in interface IAudioFrame
      • setLinkPathLong

        public final void setLinkPathLong(java.lang.String value)

        Returns or sets the name of an audio file which is linked to an AudioFrame. Read/write String.

        Specified by:
        setLinkPathLong in interface IAudioFrame