pull/497/head
FongMi 2 years ago
parent 87a3f47ae1
commit 1fcf5eeca3
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/CastActivity.java
  2. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/LiveActivity.java
  3. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/VideoActivity.java
  4. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/LiveActivity.java
  5. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java

@ -335,7 +335,7 @@ public class CastActivity extends BaseActivity implements CustomKeyDownCast.List
@Subscribe(threadMode = ThreadMode.MAIN)
public void onErrorEvent(ErrorEvent event) {
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode();
else if (mPlayers.addRetry() > 1) onError(event);
else if (mPlayers.addRetry() > 2) onError(event);
else onReset();
}

@ -711,7 +711,7 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick
@Subscribe(threadMode = ThreadMode.MAIN)
public void onErrorEvent(ErrorEvent event) {
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode();
else if (mPlayers.addRetry() > 1) onError(event);
else if (mPlayers.addRetry() > 2) onError(event);
else fetch();
}

@ -1131,7 +1131,7 @@ public class VideoActivity extends BaseActivity implements CustomKeyDownVod.List
public void onErrorEvent(ErrorEvent event) {
if (isBackground()) return;
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode();
else if (mPlayers.addRetry() > 1) onError(event);
else if (mPlayers.addRetry() > 2) onError(event);
else onRefresh();
}

@ -770,7 +770,7 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List
@Subscribe(threadMode = ThreadMode.MAIN)
public void onErrorEvent(ErrorEvent event) {
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode();
else if (mPlayers.addRetry() > 1) onError(event);
else if (mPlayers.addRetry() > 2) onError(event);
else fetch();
}

@ -1141,7 +1141,7 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo
public void onErrorEvent(ErrorEvent event) {
if (isRedirect()) return;
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode();
else if (mPlayers.addRetry() > 1) onError(event);
else if (mPlayers.addRetry() > 2) onError(event);
else onRefresh();
}

Loading…
Cancel
Save