mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Default SingleSampleMediaSource.treatLoadErrorsAsEndOfStream to true
Issue: #8430 PiperOrigin-RevId: 351971671
This commit is contained in:
parent
77a559640b
commit
f076080434
2 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||||
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 {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue