mirror of
https://github.com/androidx/media.git
synced 2025-05-13 02:29:52 +08:00
Propagate LoadErrorHandlingPolicy to SingleSampleMediaSource.Factory
I think this was missed when integrating DefaultMediaSourceFactory with
SingleSampleMediaSource.Factory in
315ba6f324
Issue: #8430
#minor-release
PiperOrigin-RevId: 350759580
This commit is contained in:
parent
b1cf04f22c
commit
06942116bd
@ -41,6 +41,11 @@
|
|||||||
* Add option to `MergingMediaSource` to clip the durations of all sources
|
* Add option to `MergingMediaSource` to clip the durations of all sources
|
||||||
to have the same length
|
to have the same length
|
||||||
([#8422](https://github.com/google/ExoPlayer/issues/8422)).
|
([#8422](https://github.com/google/ExoPlayer/issues/8422)).
|
||||||
|
* Fix propagation of `LoadErrorHandlingPolicy` from
|
||||||
|
`DefaultMediaSourceFactory` into `SingleSampleMediaSource.Factory` when
|
||||||
|
creating subtitle media sources from
|
||||||
|
`MediaItem.playbackProperties.subtitles`
|
||||||
|
([#8430](https://github.com/google/ExoPlayer/issues/8430)).
|
||||||
* Extractors:
|
* Extractors:
|
||||||
* Populate codecs string for H.264/AVC in MP4, Matroska and FLV streams to
|
* Populate codecs string for H.264/AVC in MP4, Matroska and FLV streams to
|
||||||
allow decoder capability checks based on codec profile/level
|
allow decoder capability checks based on codec profile/level
|
||||||
|
@ -360,7 +360,8 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
|
|||||||
MediaSource[] mediaSources = new MediaSource[subtitles.size() + 1];
|
MediaSource[] mediaSources = new MediaSource[subtitles.size() + 1];
|
||||||
mediaSources[0] = mediaSource;
|
mediaSources[0] = mediaSource;
|
||||||
SingleSampleMediaSource.Factory singleSampleSourceFactory =
|
SingleSampleMediaSource.Factory singleSampleSourceFactory =
|
||||||
new SingleSampleMediaSource.Factory(dataSourceFactory);
|
new SingleSampleMediaSource.Factory(dataSourceFactory)
|
||||||
|
.setLoadErrorHandlingPolicy(loadErrorHandlingPolicy);
|
||||||
for (int i = 0; i < subtitles.size(); i++) {
|
for (int i = 0; i < subtitles.size(); i++) {
|
||||||
mediaSources[i + 1] =
|
mediaSources[i + 1] =
|
||||||
singleSampleSourceFactory.createMediaSource(
|
singleSampleSourceFactory.createMediaSource(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user