Class MpegTrackFragmentHeader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.mpeg.reader.fragmented.MpegTrackFragmentHeader
-
public class MpegTrackFragmentHeader extends java.lang.ObjectHeader for an MP4 track in a fragment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMpegTrackFragmentHeader.BuilderA helper for building an instance of this class.
-
Field Summary
Fields Modifier and Type Field Description longbaseTimecodeThe timecode at which this track is at the start of this fragmentintdataOffsetThe offset of the data for this track in this fragmentint[]sampleDurationsDuration of each sample for this track in this fragment using file timescaleint[]sampleSizesSize of each sample for this track in this fragmentinttrackIdTrack ID which this header is for
-
Constructor Summary
Constructors Constructor Description MpegTrackFragmentHeader(int trackId, long baseTimecode, int dataOffset, int[] sampleDurations, int[] sampleSizes)
-
-
-
Field Detail
-
trackId
public final int trackId
Track ID which this header is for
-
baseTimecode
public final long baseTimecode
The timecode at which this track is at the start of this fragment
-
dataOffset
public final int dataOffset
The offset of the data for this track in this fragment
-
sampleDurations
public final int[] sampleDurations
Duration of each sample for this track in this fragment using file timescale
-
sampleSizes
public final int[] sampleSizes
Size of each sample for this track in this fragment
-
-
Constructor Detail
-
MpegTrackFragmentHeader
public MpegTrackFragmentHeader(int trackId, long baseTimecode, int dataOffset, int[] sampleDurations, int[] sampleSizes)- Parameters:
trackId- Track ID which this header is forbaseTimecode- The timecode at which this track is at the start of this fragmentdataOffset- The offset of the data for this track in this fragmentsampleDurations- Duration of each sample for this track in this fragment using file timescalesampleSizes- Size of each sample for this track in this fragment
-
-