public class VideoPlayerHtmlController extends java.lang.Object implements IVideoPlayerHtmlController
This class allows export of video and audio files into a HTML
| Constructor and Description |
|---|
VideoPlayerHtmlController(java.lang.String path,
java.lang.String fileName,
java.lang.String baseUri)
Creates a new instance of controller
|
| Modifier and Type | Method and Description |
|---|---|
void |
formatShape(ISvgShape svgShape,
IShape shape)
This function is called before rendering of shape to SVG to allow user to control resulting SVG.
|
int |
getObjectStoringLocation(int id,
byte[] entityData,
java.lang.String semanticName,
java.lang.String contentType,
java.lang.String recomendedExtension)
Determines where object should be stored.
|
java.lang.String |
getUrl(int id,
int referrer)
Returns an URL to an external object.
|
void |
saveExternal(int id,
byte[] entityData)
Saves external object.
|
void |
writeDocumentEnd(IHtmlGenerator generator,
IPresentation presentation)
Called to write html document footer.
|
void |
writeDocumentStart(IHtmlGenerator generator,
IPresentation presentation)
Called to write html document header.
|
void |
writeShapeEnd(IHtmlGenerator generator,
IShape shape)
Called before shape's rendering.
|
void |
writeShapeStart(IHtmlGenerator generator,
IShape shape)
Called before shape's rendering.
|
void |
writeSlideEnd(IHtmlGenerator generator,
ISlide slide)
Called to write html slide footer.
|
void |
writeSlideStart(IHtmlGenerator generator,
ISlide slide)
Called to write html slide header.
|
public VideoPlayerHtmlController(java.lang.String path,
java.lang.String fileName,
java.lang.String baseUri)
Creates a new instance of controller
path - The path where video and audio files will be generatedfileName - The name of the HTML filebaseUri - The base URI which will be used for links generatingpublic final void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)
IHtmlFormattingControllerCalled to write html document header. Called once per presentation conversion.
writeDocumentStart in interface IHtmlFormattingControllergenerator - Output object.presentation - Presentation which being currently rendered.public final void writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)
IHtmlFormattingControllerCalled to write html document footer. Called once per presentation conversion.
writeDocumentEnd in interface IHtmlFormattingControllergenerator - Output object.presentation - Presentation which being currently rendered.public final void writeSlideStart(IHtmlGenerator generator, ISlide slide)
IHtmlFormattingControllerCalled to write html slide header. Called once per each of slides.
writeSlideStart in interface IHtmlFormattingControllergenerator - Output object.slide - Slide which being currently rendered.public final void writeSlideEnd(IHtmlGenerator generator, ISlide slide)
IHtmlFormattingControllerCalled to write html slide footer. Called once per each of slides.
writeSlideEnd in interface IHtmlFormattingControllergenerator - Output object.slide - Slide which being currently rendered.public final void writeShapeStart(IHtmlGenerator generator, IShape shape)
IHtmlFormattingControllerCalled 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.
writeShapeStart in interface IHtmlFormattingControllergenerator - Output object.shape - Shape which is about to render.public final void writeShapeEnd(IHtmlGenerator generator, IShape shape)
IHtmlFormattingControllerCalled 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.
writeShapeEnd in interface IHtmlFormattingControllergenerator - Output object.shape - Shape which is rendered last.public final void formatShape(ISvgShape svgShape, IShape shape)
ISvgShapeFormattingControllerThis function is called before rendering of shape to SVG to allow user to control resulting SVG.
formatShape in interface ISvgShapeFormattingControllersvgShape - Object to control SVG shape generation.shape - Source shape.public final int getObjectStoringLocation(int id,
byte[] entityData,
java.lang.String semanticName,
java.lang.String contentType,
java.lang.String recomendedExtension)
ILinkEmbedControllerDetermines 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.
getObjectStoringLocation in interface ILinkEmbedControllerid - Object id. This id is saving operation-wide unique.entityData - Object binary data. This parameter can be null, if object binary data is not generated yet.semanticName - Some short text, describing meaning of object. Controller may use this as a part of external object name, but it is up to dispatcher to ensure that names will be unique and contain only allowed characters.contentType - MIME type of object.recomendedExtension - File name extension, recommended for this MIME type.public final java.lang.String getUrl(int id,
int referrer)
ILinkEmbedController
Returns an URL to an external object.
This method always called if ILinkEmbedController.getObjectStoringLocation(int,byte[],String,String,String) returned LinkEmbedDecision.Link and may be called if ILinkEmbedController.getObjectStoringLocation(int,byte[],String,String,String) returned LinkEmbedDecision.Embed but embedding is impossible.
Can be called multiple time for same object id.
getUrl in interface ILinkEmbedControllerid - Object id. This id is saving operation-wide unique.referrer - id of referrencing object or 0, if object is referrenced by the root document. May be used to generate relative link.public final void saveExternal(int id,
byte[] entityData)
ILinkEmbedControllerSaves external object.
saveExternal in interface ILinkEmbedControllerid - Object id. This id is saving operation-wide unique.entityData - Object binary data. This parameter cannot be null.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.