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

Free Support Forum - aspose.com

Maintaining responsive output when converting PowerPoints with vidoes to HTML5

Hi there,

I am trying to build your PPT to HTML5 converter into my application. I am trying to achieve two things.

  1. Maintain responsiveness. I understand this is done using the following code:

ResponsiveHtmlController controller = new ResponsiveHtmlController();
HtmlOptions htmlOptions = new HtmlOptions { HtmlFormatter = HtmlFormatter.CreateCustomFormatter(controller) };

  1. Ensure videos in the PPT are converted to videos in the HTML5. The code for this looks like:

VideoPlayerHtmlController controller = new VideoPlayerHtmlController(path,
filename, baseUR);

htmlOptions = new HtmlOptions{ HtmlFormatter = HtmlFormatter.CreateCustomFormatter(controller)};
svgOptions = new SVGOptions(controller);

htmlOptions.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Bottom;

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

These both work fine separately. But how exactly can I combine them, so that I can have responsive output with videos?




I have observed your comments. Can you please share source file so that we may further investigate to help you out.