Free Support Forum -

Export as HTML with video question

Is it possible to save presentation as HTML with videos where video source tag points to different folder than html file resides?

VideoPlayerHtmlController controller = new VideoPlayerHtmlController(
“”, htmlDocumentFileName, “”);

    HtmlOptions htmlOptions = new HtmlOptions(controller);
    SVGOptions svgOptions = new SVGOptions(controller);

    htmlOptions.HtmlFormatter = HtmlFormatter.CreateCustomFormatter(controller);
    htmlOptions.SlideImageFormat = SlideImageFormat.Svg(svgOptions);

    pres.Save(htmlDocumentFileName, SaveFormat.Html, htmlOptions);

I’m getting something like that:
indent preformatted text by 4 spaces
< video id=“video1video” style=“width:13.3953447in; height:7.5in” controls=“controls”>
< source src=“video0.mp4” type=“video/mp4”>
< /video>

I’d prefer

< video id=“video1video” style=“width:13.3953447in; height:7.5in” controls=“controls”>
< source src="/video-files-folder/video0.mp4" type=“video/mp4”>
< /video>

Another question is: can i get list of media files generated during conversion?

With respect, Michael


I have observed your requirements and regret to share that at present the support for setting the different folder to reside video sources during HTML conversion is not available. I request you to please share the source presentation along with generated output and working sample project with us. I shall add a feature request based on that in our issue tracking system.