public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ActiveX();
string dataVideo = RunExamples.GetDataDir_Video();
// Instantiate Presentation class that represents PPTX file
Presentation presentation = new Presentation(dataDir + "template.pptx");
// Create empty presentation instance
Presentation newPresentation = new Presentation();
// Remove default slide
newPresentation.Slides.RemoveAt(0);
// Clone slide with Media Player ActiveX Control
newPresentation.Slides.InsertClone(0, presentation.Slides[0]);
// Access the Media Player ActiveX control and set the video path
newPresentation.Slides[0].Controls[0].Properties["URL"] = dataVideo + "Wildlife.mp4";
// Save the Presentation
newPresentation.Save(dataDir + "LinkingVideoActiveXControl_out.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
}
}