Class MatroskaFileTrack
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileTrack
-
public class MatroskaFileTrack extends java.lang.ObjectDescribes one track in a matroska file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatroskaFileTrack.AudioDetailsFields specific to an audio track.static classMatroskaFileTrack.TypeTrack type list.
-
Field Summary
Fields Modifier and Type Field Description MatroskaFileTrack.AudioDetailsaudioInformation specific to audio tracks (null for non-audio tracks).java.lang.StringcodecIdID of the codec.byte[]codecPrivateCustom data for the codec (header).intindexTrack index/number.java.lang.StringnameName of the track.longtrackUidThe unique track UID.MatroskaFileTrack.TypetypeType of the track.
-
Constructor Summary
Constructors Constructor Description MatroskaFileTrack(int index, MatroskaFileTrack.Type type, long trackUid, java.lang.String name, java.lang.String codecId, byte[] codecPrivate, MatroskaFileTrack.AudioDetails audio)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatroskaFileTrackparse(MatroskaElement trackElement, MatroskaFileReader reader)
-
-
-
Field Detail
-
index
public final int index
Track index/number.
-
type
public final MatroskaFileTrack.Type type
Type of the track.
-
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).
-
audio
public final MatroskaFileTrack.AudioDetails audio
Information specific to audio tracks (null for non-audio tracks).
-
-
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 elementreader- Matroska file reader- Returns:
- The parsed track
- Throws:
java.io.IOException- On read error
-
-