Skip to content

Commit

Permalink
Rename failureRetryCount to minLoadRetryCount
Browse files Browse the repository at this point in the history
  • Loading branch information
cobarx authored Feb 11, 2019
1 parent 77411f2 commit 35250fa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ReactExoplayerView extends FrameLayout implements
private boolean isBuffering;
private float rate = 1f;
private float audioVolume = 1f;
private int failureRetryCount = 3;
private int minLoadRetryCount = 3;
private int maxBitRate = 0;
private long seekTime = C.TIME_UNSET;

Expand Down Expand Up @@ -312,16 +312,16 @@ private MediaSource buildMediaSource(Uri uri, String overrideExtension) {
case C.TYPE_SS:
return new SsMediaSource(uri, buildDataSourceFactory(false),
new DefaultSsChunkSource.Factory(mediaDataSourceFactory),
failureRetryCount, SsMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS,
minLoadRetryCount, SsMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS,
mainHandler, null);
case C.TYPE_DASH:
return new DashMediaSource(uri, buildDataSourceFactory(false),
new DefaultDashChunkSource.Factory(mediaDataSourceFactory),
failureRetryCount, DashMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS,
minLoadRetryCount, DashMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS,
mainHandler, null);
case C.TYPE_HLS:
return new HlsMediaSource(uri, mediaDataSourceFactory,
failureRetryCount, mainHandler, null);
minLoadRetryCount, mainHandler, null);
case C.TYPE_OTHER:
return new ExtractorMediaSource(uri, mediaDataSourceFactory, new DefaultExtractorsFactory(),
mainHandler, null);
Expand Down Expand Up @@ -1002,8 +1002,8 @@ public void setMaxBitRateModifier(int newMaxBitRate) {
}
}

public void setfailureRetryCountModifier(int newFailureRetryCount) {
failureRetryCount = newFailureRetryCount;
public void setMinLoadRetryCountModifier(int newMinLoadRetryCount) {
minLoadRetryCount = newMinLoadRetryCount;
releasePlayer();
initializePlayer();
}
Expand Down

0 comments on commit 35250fa

Please sign in to comment.