mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Remove ExtractorMediaSource.setMinLoadableRetryCount()
PiperOrigin-RevId: 351815772
This commit is contained in:
parent
4e40a03ac9
commit
fa94fba2cb
2 changed files with 3 additions and 8 deletions
|
|
@ -12,6 +12,9 @@
|
|||
instead.
|
||||
* `DrmInitData.get(UUID)`. Use `DrmInitData.get(int)` and
|
||||
`DrmInitData.SchemeData.matches(UUID)` instead.
|
||||
* `ExtractorsMediaSource.Factory.setMinLoadableRetryCount(int)`. Use
|
||||
`ExtractorsMediaSource.Factory.setLoadErrorHandlingPolicy(LoadErrorHandlingPolicy)`
|
||||
instead.
|
||||
* `MappedTrackInfo.getTrackFormatSupport(int, int, int)`. Use
|
||||
`MappedTrackInfo.getTrackSupport(int, int, int)`.
|
||||
* `MappedTrackInfo.getTrackTypeRendererSupport(int)`. Use
|
||||
|
|
|
|||
|
|
@ -122,18 +122,10 @@ public final class ExtractorMediaSource extends CompositeMediaSource<Void> {
|
|||
return this;
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link #setLoadErrorHandlingPolicy(LoadErrorHandlingPolicy)} instead. */
|
||||
@Deprecated
|
||||
public Factory setMinLoadableRetryCount(int minLoadableRetryCount) {
|
||||
return setLoadErrorHandlingPolicy(new DefaultLoadErrorHandlingPolicy(minLoadableRetryCount));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link LoadErrorHandlingPolicy}. The default value is created by calling {@link
|
||||
* DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}.
|
||||
*
|
||||
* <p>Calling this method overrides any calls to {@link #setMinLoadableRetryCount(int)}.
|
||||
*
|
||||
* @param loadErrorHandlingPolicy A {@link LoadErrorHandlingPolicy}.
|
||||
* @return This factory, for convenience.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue