extensions/mmt/src/main/java/com/nextgenbroadcast/mmt/exoplayer2/ext/MMTMediaPeriod.java
private boolean seekInsideBufferUs(boolean[] trackIsAudioVideoFlags, long positionUs) {
        int trackCount = sampleQueues.length;
        for (int i = 0; i < trackCount; i++) {
            SampleQueue sampleQueue = sampleQueues[i];
            sampleQueue.rewind();
            boolean seekInsideQueue = sampleQueue.advanceTo(positionUs, true, false)
                    != SampleQueue.ADVANCE_FAILED;
            // If we have AV tracks then an in-buffer seek is successful if the seek into every AV queue
            // is successful. We ignore whether seeks within non-AV queues are successful in this case, as
            // they may be sparse or poorly interleaved. If we only have non-AV tracks then a seek is
            // successful only if the seek into every queue succeeds.
            if (!seekInsideQueue && (trackIsAudioVideoFlags[i] || !haveAudioVideoTracks)) {
                return false;
            }
        }
        return true;
    }
/**
     * Attempts to seek to the specified position within the sample queues.
     *
     * @param trackIsAudioVideoFlags Whether each track is audio/video.
     * @param positionUs             The seek position in microseconds.
     * @return Whether the in-buffer seek was successful.
     */
Attempts to seek to the specified position within the sample queues.
@param trackIsAudioVideoFlags Whether each track is audio/video.
@param positionUs             The seek position in microseconds.
@return Whether the in-buffer seek was successful.
Attempts to seek to the specified position within the sample queues . @param trackIsAudioVideoFlags Whether each track is audio / video . @param positionUs The seek position in microseconds . @return Whether the in - buffer seek was successful .
private boolean seekInsideBufferUs(boolean[] trackIsAudioVideoFlags, long positionUs) {
        int trackCount = sampleQueues.length;
        for (int i = 0; i < trackCount; i++) {
            SampleQueue sampleQueue = sampleQueues[i];
            sampleQueue.rewind();
            boolean seekInsideQueue = sampleQueue.advanceTo(positionUs, true, false)
                    != SampleQueue.ADVANCE_FAILED;
            if (!seekInsideQueue && (trackIsAudioVideoFlags[i] || !haveAudioVideoTracks)) {
                return false;
            }
        }
        return true;
    }
private boolean seekInsideBufferUs ( boolean [ ] trackIsAudioVideoFlags , long positionUs ) { int trackCount = sampleQueues . length ; for ( int i = 0 ; i < trackCount ; i ++ ) { SampleQueue sampleQueue = sampleQueues [ i ] ; sampleQueue . rewind ( ) ; boolean seekInsideQueue = sampleQueue . advanceTo ( positionUs , true , false ) != SampleQueue . ADVANCE_FAILED ; if ( ! seekInsideQueue && ( trackIsAudioVideoFlags [ i ] || ! haveAudioVideoTracks ) ) { return false ; } } return true ; }
Attempts to seek to the specified position within the sample queues.
Attempts to seek to the specified position within the sample queues .
// If we have AV tracks then an in-buffer seek is successful if the seek into every AV queue // is successful. We ignore whether seeks within non-AV queues are successful in this case, as // they may be sparse or poorly interleaved. If we only have non-AV tracks then a seek is // successful only if the seek into every queue succeeds.