I am using this componenet to allow users to build their own presentation by picking slides from a pool of source presentations.
Using the CloneSlide functionality i am able to do nearly everything. The one thing I am stick on is that some of the slides contain video, the video source files are in the same folder as the presentation.
In order for me to copy the video slide from the source to the user presentation I just need to find the filename of the video in the original slide however this is proving difficult. I am unable to locate the video filename anywhere within the shapes or placeholders. I can locate an OleObjectFrame on 1 video slide but am still unable to find a mention of the filename. I have been searching the slide object through the debug in VS.Net but no luck.
How can i find the filename of the video in a source presentation?
The presentations have mpg video. I am not able to capture anything from the LinkPath properties as they are always empty. Does this mean that mpeg video is not recognaised by the system?
In Powerpoint itself I created a blank presentation, added a new Content slide and clicked the Insert Media Icon to add an mpg video.
When I examine this slide object in VS.Net debug using SlidePresentation.Slides[0] there appears to be 1 Shape which is a PictureFrame.
I managed to access the video filename of the shape item by doing a 'DirectCast' in VB.Net as opposed to CType. This is to cast the item into a VideoFrame. Using DirectCast however you will need to check for the Item type prior to the actual cast -
Dim vf As Aspose.Slides.VideoFrame
If TypeOf sl1.Shapes.Item(i) Is Aspose.Slides.VideoFrame Then