mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-02-04 13:50:47 -06:00
exoplayer: upd sabr code
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
files:
|
||||
- source: /common/src/main/res/values/strings.xml
|
||||
translation: /common/src/main/res/values-%android_code%/strings.xml
|
||||
files:
|
||||
- source: /common/src/main/res/values/strings.xml
|
||||
translation: /common/src/main/res/values-%android_code%/strings.xml
|
||||
@@ -538,7 +538,7 @@ public class DefaultSabrChunkSource implements SabrChunkSource {
|
||||
Representation representation = representationHolder.representation;
|
||||
|
||||
if (nexChunkIdx == -1) {
|
||||
sabrStream.reset();
|
||||
//sabrStream.reset();
|
||||
}
|
||||
|
||||
nexChunkIdx++;
|
||||
|
||||
@@ -65,7 +65,6 @@ public class SabrProcessor {
|
||||
private final long durationMs;
|
||||
private final Map<Long, Segment> partialSegments;
|
||||
private Segment recentSegment;
|
||||
private Segment recentSegmentTmp;
|
||||
private final Map<String, SelectedFormat> selectedFormats;
|
||||
private Status streamProtectionStatus;
|
||||
private boolean isLive;
|
||||
@@ -265,7 +264,6 @@ public class SabrProcessor {
|
||||
);
|
||||
|
||||
recentSegment = segment;
|
||||
recentSegmentTmp = segment;
|
||||
}
|
||||
|
||||
Log.d(TAG, "Initialized Media Header %s for sequence %s. Segment: %s",
|
||||
@@ -660,7 +658,7 @@ public class SabrProcessor {
|
||||
}
|
||||
|
||||
public long getSegmentDurationMs() {
|
||||
return recentSegment != null ? recentSegment.durationMs : recentSegmentTmp != null ? recentSegmentTmp.durationMs : 0;
|
||||
return recentSegment != null ? recentSegment.durationMs : 0;
|
||||
}
|
||||
|
||||
//private List<FormatId> createSelectedFormatIds() {
|
||||
|
||||
Reference in New Issue
Block a user