public final class PtsTimestampAdjusterProvider extends Object
PtsTimestampAdjuster
instances for use during HLS playbacks.Constructor and Description |
---|
PtsTimestampAdjusterProvider() |
Modifier and Type | Method and Description |
---|---|
PtsTimestampAdjuster |
getAdjuster(boolean isMasterSource,
int discontinuitySequence,
long startTimeUs)
Gets a
PtsTimestampAdjuster suitable for adjusting the pts timestamps contained in
a chunk with a given discontinuity sequence. |
void |
reset()
Resets the provider.
|
public PtsTimestampAdjuster getAdjuster(boolean isMasterSource, int discontinuitySequence, long startTimeUs)
PtsTimestampAdjuster
suitable for adjusting the pts timestamps contained in
a chunk with a given discontinuity sequence.
This method may return null if the master source has yet to initialize a suitable adjuster.
isMasterSource
- True if the calling chunk source is the master.discontinuitySequence
- The chunk's discontinuity sequence.startTimeUs
- The chunk's start time.PtsTimestampAdjuster
.public void reset()