public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Conversion();
// Loading a presentation
using (Presentation pres = new Presentation(dataDir + "Media File.pptx"))
{
string path = dataDir;
const string fileName = "ExportMediaFiles_out.html";
const string baseUri = "http://www.example.com/";
VideoPlayerHtmlController controller = new VideoPlayerHtmlController(path, fileName, baseUri);
// Setting HTML options
HtmlOptions htmlOptions = new HtmlOptions(controller);
SVGOptions svgOptions = new SVGOptions(controller);
htmlOptions.HtmlFormatter = HtmlFormatter.CreateCustomFormatter(controller);
htmlOptions.SlideImageFormat = SlideImageFormat.Svg(svgOptions);
// Saving the file
pres.Save(Path.Combine(path, fileName), SaveFormat.Html, htmlOptions);
}
}
}