We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Multimedia: Audio and video support while cloning Slides


Does the Aspose.Slides provide support for audio and video formats (audio and video files embedded in the presentations) in slides, while cloning them.
I mean can we clone slides containing audio or video data and create a new Presentations out of these slides without losing this audio/video data?

Thanks in advance.


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Note: Audio can both be embedded/linked in PPT files but video is always linked.

CloneSlide will copy audio/videos as it is, means, if they are embedded, it will also copy their data else it will copy their links if they are linked.


Thanks for the reply.

To clone a slide containing a video, Can something like this be done?

  • While saving the presentations, we find out the slide containing a videoframe and along with saving the slide details we also save the video and the details of the video frame like its coordinates,height and width.
  • Now once this information is saved, we can use this information while cloning this slide by adding a videoframe at the same coordinates.
For adding a videoframe we can use the function:
addVideoFrame(int x, int y, int width, int height, java.lang.String fname)

But this function takes the filename as a parameter.
Is there any way to create a videoframe from a inputStream.

As you have mentioned above, videos can only be linked and not be embedded, still is there any function which takes the video from the stored information as inputStream?


No, there is no such storage inside presentation which could hold video Video is always linked.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

VideoFrame is just a shape, it can be serialized and write as it is to other slide or presentation, it holds the link to video only which PowerPoint plays when it is clicked.