Class MediaTracksUtils

java.lang.Object
com.jalios.jcms.media.MediaTracksUtils

public class MediaTracksUtils extends Object
Utility class for Media track management.
  • Constructor Details

    • MediaTracksUtils

      public MediaTracksUtils()
  • Method Details

    • transformSrtTracktoVttTrack

      public static void transformSrtTracktoVttTrack(Track track) throws IOException
      Converts a track from SRT to VTT format. Implementation details : only SRT files are supported, using a very naive parsing for now.
      Parameters:
      track - the track to be converted
      Throws:
      IOException
    • checkVttTrackIntegrity

      public static void checkVttTrackIntegrity(Track track) throws IOException
      Checks if a VTT track has the valid format (containing milliseconds or not). If not, the method performs a correction (adds milliseconds to timestamps).
      Parameters:
      track - the track to be checked and corrected if needed
      Throws:
      IOException