Interface VideoService

    • Method Detail

      • launchConversion

        void launchConversion​(DocumentModel doc,
                              String conversionName)
        Launch an asynchronously video conversion of the given doc.
        Parameters:
        doc - the video document to be converted
        conversionName - the video conversion to use
      • launchAutomaticConversions

        default void launchAutomaticConversions​(DocumentModel doc)
        Launch all the registered automatic video conversions on the given doc.
        Parameters:
        doc - the video document to be converted
      • launchAutomaticConversions

        void launchAutomaticConversions​(DocumentModel doc,
                                        boolean onlyMissing)
        Launch registered automatic video conversions on the given doc.

        If onlyMissing is true, launch only the automatic video conversions that are not on the video document, otherwise launch all the registered automatic video conversions

        Parameters:
        doc - the video document to be converted
        onlyMissing - whether to launch only the missing video conversions
        Since:
        11.5
      • convert

        TranscodedVideo convert​(Video originalVideo,
                                String conversionName)
        Convert the originalVideo using the given conversionName.
        Parameters:
        originalVideo - the video to convert
        conversionName - the video conversion to use
        Returns:
        a TranscodedVideo object of the converted video.