|
|
|
|
@ -3,9 +3,7 @@ package com.fongmi.android.tv.ui.activity; |
|
|
|
|
import android.annotation.SuppressLint; |
|
|
|
|
import android.content.Context; |
|
|
|
|
import android.content.Intent; |
|
|
|
|
import android.graphics.drawable.BitmapDrawable; |
|
|
|
|
import android.graphics.drawable.Drawable; |
|
|
|
|
import android.support.v4.media.MediaMetadataCompat; |
|
|
|
|
import android.view.KeyEvent; |
|
|
|
|
import android.view.View; |
|
|
|
|
|
|
|
|
|
@ -380,7 +378,11 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void onDecode() { |
|
|
|
|
mPlayers.toggleDecode(); |
|
|
|
|
onDecode(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void onDecode(boolean save) { |
|
|
|
|
mPlayers.toggleDecode(save); |
|
|
|
|
mPlayers.set(mBinding.exo); |
|
|
|
|
setDecode(); |
|
|
|
|
fetch(); |
|
|
|
|
@ -712,7 +714,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(); |
|
|
|
|
if (event.getCode() / 1000 == 4 && Players.isHard()) onDecode(false); |
|
|
|
|
else if (mPlayers.addRetry() > 1) onError(event); |
|
|
|
|
else fetch(); |
|
|
|
|
} |
|
|
|
|
|