Class WebVttCaptionConverter

java.lang.Object
org.opencastproject.caption.converters.WebVttCaptionConverter
All Implemented Interfaces:
org.opencastproject.caption.api.CaptionConverter

public class WebVttCaptionConverter extends Object implements org.opencastproject.caption.api.CaptionConverter
  • Constructor Details

    • WebVttCaptionConverter

      public WebVttCaptionConverter()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
    • importCaption

      public List<org.opencastproject.caption.api.Caption> importCaption(InputStream in, String language) throws org.opencastproject.caption.api.CaptionConverterException
      Language parameter is ignored.
      Specified by:
      importCaption in interface org.opencastproject.caption.api.CaptionConverter
      Throws:
      org.opencastproject.caption.api.CaptionConverterException
      See Also:
      • CaptionConverter.importCaption(java.io.InputStream, java.lang.String)
    • exportCaption

      public void exportCaption(OutputStream outputStream, List<org.opencastproject.caption.api.Caption> captions, String language) throws IOException
      Language parameter is ignored.
      Specified by:
      exportCaption in interface org.opencastproject.caption.api.CaptionConverter
      Throws:
      IOException
    • getLanguageList

      public String[] getLanguageList(InputStream input) throws org.opencastproject.caption.api.CaptionConverterException
      Specified by:
      getLanguageList in interface org.opencastproject.caption.api.CaptionConverter
      Throws:
      org.opencastproject.caption.api.CaptionConverterException
    • getExtension

      public String getExtension()
      Specified by:
      getExtension in interface org.opencastproject.caption.api.CaptionConverter
    • getElementType

      public org.opencastproject.mediapackage.MediaPackageElement.Type getElementType()
      Specified by:
      getElementType in interface org.opencastproject.caption.api.CaptionConverter