VideoPlayerHtmlController

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IVideoPlayerHtmlController

public class VideoPlayerHtmlController implements IVideoPlayerHtmlController

This class allows export of video and audio files into a HTML

Constructors

ConstructorDescription
VideoPlayerHtmlController(String path, String fileName, String baseUri)Creates a new instance of controller

Methods

MethodDescription
writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)
writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)
writeSlideStart(IHtmlGenerator generator, ISlide slide)
writeSlideEnd(IHtmlGenerator generator, ISlide slide)
writeShapeStart(IHtmlGenerator generator, IShape shape)
writeShapeEnd(IHtmlGenerator generator, IShape shape)
formatShape(ISvgShape svgShape, IShape shape)
getObjectStoringLocation(int id, byte[] entityData, String semanticName, String contentType, String recomendedExtension)
getUrl(int id, int referrer)
saveExternal(int id, byte[] entityData)

VideoPlayerHtmlController(String path, String fileName, String baseUri)

public VideoPlayerHtmlController(String path, String fileName, String baseUri)

Creates a new instance of controller

Parameters:

ParameterTypeDescription
pathjava.lang.StringThe path where video and audio files will be generated
fileNamejava.lang.StringThe name of the HTML file
baseUrijava.lang.StringThe base URI which will be used for links generating

writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)

public final void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)

Called to write html document header. Called once per presentation conversion.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
presentationIPresentation

writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)

public final void writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)

Called to write html document footer. Called once per presentation conversion.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
presentationIPresentation

writeSlideStart(IHtmlGenerator generator, ISlide slide)

public final void writeSlideStart(IHtmlGenerator generator, ISlide slide)

Called to write html slide header. Called once per each of slides.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
slideISlide

writeSlideEnd(IHtmlGenerator generator, ISlide slide)

public final void writeSlideEnd(IHtmlGenerator generator, ISlide slide)

Called to write html slide footer. Called once per each of slides.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
slideISlide

writeShapeStart(IHtmlGenerator generator, IShape shape)

public final void writeShapeStart(IHtmlGenerator generator, IShape shape)

Called before shape’s rendering. Called once per each of shape. If this function writes anything to generator, current slide image generation will be finished, added html fragment inserted and new image will be started atop of the previous.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
shapeIShape

writeShapeEnd(IHtmlGenerator generator, IShape shape)

public final void writeShapeEnd(IHtmlGenerator generator, IShape shape)

Called before shape’s rendering. Called once per each of shape. If this function writes anything to generator, current slide image generation will be finished, added html fragment inserted and new image will be started atop of the previous.

Parameters:

ParameterTypeDescription
generatorIHtmlGenerator
shapeIShape

formatShape(ISvgShape svgShape, IShape shape)

public final void formatShape(ISvgShape svgShape, IShape shape)

This function is called before rendering of shape to SVG to allow user to control resulting SVG.

Parameters:

ParameterTypeDescription
svgShapeISvgShape
shapeIShape

getObjectStoringLocation(int id, byte[] entityData, String semanticName, String contentType, String recomendedExtension)

public final int getObjectStoringLocation(int id, byte[] entityData, String semanticName, String contentType, String recomendedExtension)

Determines where object should be stored. This method is called once for each object id. It is not guaranteed that there won’t be two objects with same data, semanticName and contentType but with different id.

Parameters:

ParameterTypeDescription
idint
entityDatabyte[]
semanticNamejava.lang.String
contentTypejava.lang.String
recomendedExtensionjava.lang.String

Returns: int

getUrl(int id, int referrer)

public final String getUrl(int id, int referrer)

Returns an URL to an external object. This method always called if #getObjectStoringLocation(int,byte[],String,String,String).getObjectStoringLocation(int,byte[],String,String,String) returned LinkEmbedDecision.Link and may be called if #getObjectStoringLocation(int,byte[],String,String,String).getObjectStoringLocation(int,byte[],String,String,String) returned LinkEmbedDecision.Embed but embedding is impossible. Can be called multiple time for same object id.

Parameters:

ParameterTypeDescription
idint
referrerint

Returns: java.lang.String

saveExternal(int id, byte[] entityData)

public final void saveExternal(int id, byte[] entityData)

Saves external object.

Parameters:

ParameterTypeDescription
idint
entityDatabyte[]