Commit fa94fba2 by christosts Committed by Ian Baker

Remove ExtractorMediaSource.setMinLoadableRetryCount()

PiperOrigin-RevId: 351815772
parent 4e40a03a
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
instead. instead.
* `DrmInitData.get(UUID)`. Use `DrmInitData.get(int)` and * `DrmInitData.get(UUID)`. Use `DrmInitData.get(int)` and
`DrmInitData.SchemeData.matches(UUID)` instead. `DrmInitData.SchemeData.matches(UUID)` instead.
* `ExtractorsMediaSource.Factory.setMinLoadableRetryCount(int)`. Use
`ExtractorsMediaSource.Factory.setLoadErrorHandlingPolicy(LoadErrorHandlingPolicy)`
instead.
* `MappedTrackInfo.getTrackFormatSupport(int, int, int)`. Use * `MappedTrackInfo.getTrackFormatSupport(int, int, int)`. Use
`MappedTrackInfo.getTrackSupport(int, int, int)`. `MappedTrackInfo.getTrackSupport(int, int, int)`.
* `MappedTrackInfo.getTrackTypeRendererSupport(int)`. Use * `MappedTrackInfo.getTrackTypeRendererSupport(int)`. Use
......
...@@ -122,18 +122,10 @@ public final class ExtractorMediaSource extends CompositeMediaSource<Void> { ...@@ -122,18 +122,10 @@ public final class ExtractorMediaSource extends CompositeMediaSource<Void> {
return this; 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 * Sets the {@link LoadErrorHandlingPolicy}. The default value is created by calling {@link
* DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}. * DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}.
* *
* <p>Calling this method overrides any calls to {@link #setMinLoadableRetryCount(int)}.
*
* @param loadErrorHandlingPolicy A {@link LoadErrorHandlingPolicy}. * @param loadErrorHandlingPolicy A {@link LoadErrorHandlingPolicy}.
* @return This factory, for convenience. * @return This factory, for convenience.
*/ */
......
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