Class MatroskaFileTrack


  • public class MatroskaFileTrack
    extends java.lang.Object
    Describes one track in a matroska file.
    • Field Detail

      • index

        public final int index
        Track index/number.
      • trackUid

        public final long trackUid
        The unique track UID.
      • name

        public final java.lang.String name
        Name of the track.
      • codecId

        public final java.lang.String codecId
        ID of the codec.
      • codecPrivate

        public final byte[] codecPrivate
        Custom data for the codec (header).
    • Constructor Detail

      • MatroskaFileTrack

        public MatroskaFileTrack​(int index,
                                 MatroskaFileTrack.Type type,
                                 long trackUid,
                                 java.lang.String name,
                                 java.lang.String codecId,
                                 byte[] codecPrivate,
                                 MatroskaFileTrack.AudioDetails audio)
        Parameters:
        index - Track index/number.
        type - Type of the track.
        trackUid - The unique track UID.
        name - Name of the track.
        codecId - ID of the codec.
        codecPrivate - Custom data for the codec (header).
        audio - Information specific to audio tracks (null for non-audio tracks).
    • Method Detail

      • parse

        public static MatroskaFileTrack parse​(MatroskaElement trackElement,
                                              MatroskaFileReader reader)
                                       throws java.io.IOException
        Parameters:
        trackElement - The track element
        reader - Matroska file reader
        Returns:
        The parsed track
        Throws:
        java.io.IOException - On read error