com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class VideoPlayerHtmlController

  • java.lang.Object
    • com.aspose.slides.VideoPlayerHtmlController
    • Constructor Detail

      • VideoPlayerHtmlController

        public VideoPlayerHtmlController(java.lang.String path,
                                         java.lang.String fileName,
                                         java.lang.String baseUri)

        Creates a new instance of controller

        Parameters:
        path - The path where video and audio files will be generated
        fileName - The name of the HTML file
        baseUri - The base URI which will be used for links generating
    • Method Detail

      • writeShapeStart

        public final void writeShapeStart(IHtmlGenerator generator,
                                          IShape shape)
        Description copied from interface: IHtmlFormattingController

        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.

        Specified by:
        writeShapeStart in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        shape - Shape which is about to render.
      • writeShapeEnd

        public final void writeShapeEnd(IHtmlGenerator generator,
                                        IShape shape)
        Description copied from interface: IHtmlFormattingController

        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.

        Specified by:
        writeShapeEnd in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        shape - Shape which is rendered last.
      • getObjectStoringLocation

        public final int getObjectStoringLocation(int id,
                                                  byte[] entityData,
                                                  java.lang.String semanticName,
                                                  java.lang.String contentType,
                                                  java.lang.String recomendedExtension)
        Description copied from interface: ILinkEmbedController

        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.

        Specified by:
        getObjectStoringLocation in interface ILinkEmbedController
        Parameters:
        id - 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.
        Returns:
        Decision
      • saveExternal

        public final void saveExternal(int id,
                                       byte[] entityData)
        Description copied from interface: ILinkEmbedController

        Saves external object.

        Specified by:
        saveExternal in interface ILinkEmbedController
        Parameters:
        id - Object id. This id is saving operation-wide unique.
        entityData - Object binary data. This parameter cannot be null.