3.7.2
This commit is contained in:
@@ -310,8 +310,6 @@ public class M3U8VodDLoadActivity extends BaseActivity<ActivityM3u8VodBinding> {
|
||||
return option;
|
||||
}
|
||||
|
||||
private Class<BuilderController> c = BuilderController.class;
|
||||
|
||||
@Override protected void dataCallback(int result, Object data) {
|
||||
super.dataCallback(result, data);
|
||||
if (result == ModifyUrlDialog.MODIFY_URL_DIALOG_RESULT) {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.arialyy.simple.core.download.m3u8;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.media.AudioManager;
|
||||
import android.media.MediaPlayer;
|
||||
import android.os.Build;
|
||||
@@ -37,6 +39,7 @@ public class VideoPlayerFragment extends BaseFragment<FragmentVideoPlayerBinding
|
||||
private MediaPlayer mCurrentPlayer;
|
||||
private LoadingDialog mLoadingDialog;
|
||||
private int mJumpIndex = -1;
|
||||
private boolean needPaint= true;
|
||||
|
||||
VideoPlayerFragment(int peerIndex, DownloadEntity entity) {
|
||||
mEntity = entity;
|
||||
@@ -59,6 +62,12 @@ public class VideoPlayerFragment extends BaseFragment<FragmentVideoPlayerBinding
|
||||
getBinding().surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
|
||||
@Override public void surfaceCreated(SurfaceHolder holder) {
|
||||
mSurfaceHolder = holder;
|
||||
//if (needPaint){
|
||||
// needPaint = false;
|
||||
// Canvas canvas = holder.lockCanvas();
|
||||
// canvas.drawColor(Color.BLACK);
|
||||
// holder.unlockCanvasAndPost(canvas);
|
||||
//}
|
||||
startNewPlayer(mPlayers.valueAt(0));
|
||||
}
|
||||
|
||||
@@ -91,6 +100,7 @@ public class VideoPlayerFragment extends BaseFragment<FragmentVideoPlayerBinding
|
||||
@Override public void onStopTrackingTouch(SeekBar seekBar) {
|
||||
PeerIndex index = new PeerIndex();
|
||||
index.index = seekBar.getProgress();
|
||||
mJumpIndex = index.index;
|
||||
EventBus.getDefault().post(index);
|
||||
if (mCurrentPlayer != null && mCurrentPlayer.isPlaying()) {
|
||||
mCurrentPlayer.stop();
|
||||
@@ -98,7 +108,6 @@ public class VideoPlayerFragment extends BaseFragment<FragmentVideoPlayerBinding
|
||||
mCurrentPlayer.release();
|
||||
}
|
||||
showLoadingDialog();
|
||||
mJumpIndex = seekBar.getProgress();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user