You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/exoplayer_smoothstreaming/src/main/java/androidx/media3/exoplayer/smoothstreaming/offline/SsDownloader.java
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,26 @@ public SsDownloader(
93
93
.build(),
94
94
newSsManifestParser(),
95
95
cacheDataSourceFactory,
96
-
executor);
96
+
executor,
97
+
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
98
+
}
99
+
100
+
/**
101
+
* @deprecated Use {@link SsDownloader#SsDownloader(MediaItem, Parser, CacheDataSource.Factory,
102
+
* Executor, long)} instead.
103
+
*/
104
+
@Deprecated
105
+
publicSsDownloader(
106
+
MediaItemmediaItem,
107
+
Parser<SsManifest> manifestParser,
108
+
CacheDataSource.FactorycacheDataSourceFactory,
109
+
Executorexecutor) {
110
+
this(
111
+
mediaItem,
112
+
manifestParser,
113
+
cacheDataSourceFactory,
114
+
executor,
115
+
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
97
116
}
98
117
99
118
/**
@@ -106,13 +125,22 @@ public SsDownloader(
106
125
* @param executor An {@link Executor} used to make requests for the media being downloaded.
107
126
* Providing an {@link Executor} that uses multiple threads will speed up the download by
108
127
* allowing parts of it to be executed in parallel.
128
+
* @param maxMergedSegmentStartTimeDiffMs The maximum difference of the start time of two
129
+
* segments, up to which the segments (of the same URI) should be merged into a single
0 commit comments