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
Constructor | Description |
---|---|
VideoPlayerHtmlController(String path, String fileName, String baseUri) | Creates a new instance of controller |
Methods
VideoPlayerHtmlController(String path, String fileName, String baseUri)
public VideoPlayerHtmlController(String path, String fileName, String baseUri)
Creates a new instance of controller
Parameters:
Parameter | Type | Description |
---|---|---|
path | java.lang.String | The path where video and audio files will be generated |
fileName | java.lang.String | The name of the HTML file |
baseUri | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
presentation | IPresentation |
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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
presentation | IPresentation |
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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
slide | ISlide |
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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
slide | ISlide |
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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
shape | IShape |
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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | |
shape | IShape |
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:
Parameter | Type | Description |
---|---|---|
svgShape | ISvgShape | |
shape | IShape |
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:
Parameter | Type | Description |
---|---|---|
id | int | |
entityData | byte[] | |
semanticName | java.lang.String | |
contentType | java.lang.String | |
recomendedExtension | java.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:
Parameter | Type | Description |
---|---|---|
id | int | |
referrer | int |
Returns: java.lang.String
saveExternal(int id, byte[] entityData)
public final void saveExternal(int id, byte[] entityData)
Saves external object.
Parameters:
Parameter | Type | Description |
---|---|---|
id | int | |
entityData | byte[] |