@@ -120,46 +120,8 @@ public interface ReleaseCallback<T extends ChunkSource> {
120
120
* events.
121
121
* @param canReportInitialDiscontinuity Whether the stream can report an initial discontinuity if
122
122
* the first chunk can't start at the beginning and needs to preroll data.
123
-
124
- */
125
- public ChunkSampleStream (
126
- @ C .TrackType int primaryTrackType ,
127
- @ Nullable int [] embeddedTrackTypes ,
128
- @ Nullable Format [] embeddedTrackFormats ,
129
- T chunkSource ,
130
- Callback <ChunkSampleStream <T >> callback ,
131
- Allocator allocator ,
132
- long positionUs ,
133
- DrmSessionManager drmSessionManager ,
134
- DrmSessionEventListener .EventDispatcher drmEventDispatcher ,
135
- LoadErrorHandlingPolicy loadErrorHandlingPolicy ,
136
- MediaSourceEventListener .EventDispatcher mediaSourceEventDispatcher ,
137
- boolean canReportInitialDiscontinuity ) {
138
- this (primaryTrackType , embeddedTrackTypes , embeddedTrackFormats , chunkSource , callback ,
139
- allocator , positionUs , drmSessionManager , drmEventDispatcher , loadErrorHandlingPolicy ,
140
- mediaSourceEventDispatcher , canReportInitialDiscontinuity , null );
141
- }
142
-
143
- /**
144
- * Constructs an instance.
145
- *
146
- * @param primaryTrackType The {@link C.TrackType type} of the primary track.
147
- * @param embeddedTrackTypes The types of any embedded tracks, or null.
148
- * @param embeddedTrackFormats The formats of the embedded tracks, or null.
149
- * @param chunkSource A {@link ChunkSource} from which chunks to load are obtained.
150
- * @param callback An {@link Callback} for the stream.
151
- * @param allocator An {@link Allocator} from which allocations can be obtained.
152
- * @param positionUs The position from which to start loading media.
153
- * @param drmSessionManager The {@link DrmSessionManager} to obtain {@link DrmSession DrmSessions}
154
- * from.
155
- * @param drmEventDispatcher A dispatcher to notify of {@link DrmSessionEventListener} events.
156
- * @param loadErrorHandlingPolicy The {@link LoadErrorHandlingPolicy}.
157
- * @param mediaSourceEventDispatcher A dispatcher to notify of {@link MediaSourceEventListener}
158
- * events.
159
- * @param canReportInitialDiscontinuity Whether the stream can report an initial discontinuity if
160
- * the first chunk can't start at the beginning and needs to preroll data.
161
- * @param downloadExecutor An {@link Executor} for supplying the loader's thread. If null,
162
- * a default single thread executor is used.
123
+ * @param downloadExecutor An optional externally provided {@link Executor} for loading and
124
+ * extracting media.
163
125
*/
164
126
public ChunkSampleStream (
165
127
@ C .TrackType int primaryTrackType ,
@@ -183,8 +145,8 @@ public ChunkSampleStream(
183
145
this .mediaSourceEventDispatcher = mediaSourceEventDispatcher ;
184
146
this .loadErrorHandlingPolicy = loadErrorHandlingPolicy ;
185
147
this .canReportInitialDiscontinuity = canReportInitialDiscontinuity ;
186
- loader = downloadExecutor != null ?
187
- new Loader (downloadExecutor ) : new Loader ("ChunkSampleStream" );
148
+ loader =
149
+ downloadExecutor != null ? new Loader (downloadExecutor ) : new Loader ("ChunkSampleStream" );
188
150
nextChunkHolder = new ChunkHolder ();
189
151
mediaChunks = new ArrayList <>();
190
152
readOnlyMediaChunks = Collections .unmodifiableList (mediaChunks );
0 commit comments