Commit f0760804 by ibaker Committed by Ian Baker

Default `SingleSampleMediaSource.treatLoadErrorsAsEndOfStream` to true

Issue: #8430
PiperOrigin-RevId: 351971671
parent 77a55964
...@@ -119,6 +119,8 @@ ...@@ -119,6 +119,8 @@
* Remove `ExoPlaybackException.OutOfMemoryError`. * Remove `ExoPlaybackException.OutOfMemoryError`.
* Remove `setVideoDecoderOutputBufferRenderer` from Player API. Clients * Remove `setVideoDecoderOutputBufferRenderer` from Player API. Clients
should use `setOutputSurface` directly instead. should use `setOutputSurface` directly instead.
* Default `SingleSampleMediaSource.treatLoadErrorsAsEndOfStream` to `true`
([#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
......
...@@ -55,6 +55,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource { ...@@ -55,6 +55,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
public Factory(DataSource.Factory dataSourceFactory) { public Factory(DataSource.Factory dataSourceFactory) {
this.dataSourceFactory = checkNotNull(dataSourceFactory); this.dataSourceFactory = checkNotNull(dataSourceFactory);
loadErrorHandlingPolicy = new DefaultLoadErrorHandlingPolicy(); loadErrorHandlingPolicy = new DefaultLoadErrorHandlingPolicy();
treatLoadErrorsAsEndOfStream = true;
} }
/** /**
...@@ -118,7 +119,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource { ...@@ -118,7 +119,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
/** /**
* Sets whether load errors will be treated as end-of-stream signal (load errors will not be * Sets whether load errors will be treated as end-of-stream signal (load errors will not be
* propagated). The default value is false. * propagated). The default value is true.
* *
* @param treatLoadErrorsAsEndOfStream If true, load errors will not be propagated by sample * @param treatLoadErrorsAsEndOfStream If true, load errors will not be propagated by sample
* streams, treating them as ended instead. If false, load errors will be propagated * streams, treating them as ended instead. If false, load errors will be propagated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment