This project is read-only.

Aspose.Slides - Adding Audio Frame to Slide

//Instantiate Presentation class that represents the PPTX
Presentation pres = new Presentation();

//Get the first slide
ISlide sld = pres.getSlides().get_Item(0);

//Load the wav sound file to stram
FileInputStream fstr = new FileInputStream(new File("C:\\logon.wav"));

//Add Audio Frame
IAudioFrame af = sld.getShapes().addAudioFrameEmbedded(50, 150, 100, 100, fstr);

//Set Play Mode and Volume of the Audio

//Write the PPTX file to disk"data/AsposeAudio.pptx", SaveFormat.Pptx);

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jul 21, 2014 at 4:27 PM by shoaibkhan, version 3