Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Adding Rahul's fix to reduce BehindLiveWindowException
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospontual committed Nov 8, 2016
1 parent b22b058 commit 699a355
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,12 @@ public void getChunkOperation(TsChunk previousTsChunk, long playbackPositionUs,
chunkMediaSequence = getLiveNextChunkSequenceNumber(previousTsChunk.chunkIndex,
previousChunkVariantIndex, selectedVariantIndex);
if (chunkMediaSequence < mediaPlaylist.mediaSequence) {
fatalError = new BehindLiveWindowException();
return;
Log.e("HlsChunkSource", " chunkMediaSequence: " + chunkMediaSequence + "mediaSequence: " + mediaPlaylist.mediaSequence);
chunkMediaSequence = getLiveStartChunkSequenceNumber(this.selectedVariantIndex);
if (chunkMediaSequence < mediaPlaylist.mediaSequence) {
fatalError = new BehindLiveWindowException();
return;
}
}
}
} else {
Expand Down

0 comments on commit 699a355

Please sign in to comment.