opt video

This commit is contained in:
lixiaopeng
2020-02-10 21:22:50 +08:00
parent 2d8b8ed565
commit 343d6ebb34
2 changed files with 17 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ import com.mogo.module.tanlu.model.event.MarkerInfo;
import com.mogo.module.tanlu.model.event.PushTypeInfo;
import com.mogo.module.tanlu.model.event.SharedialogEvent;
import com.mogo.module.tanlu.util.Utils;
import com.mogo.module.tanlu.video.FullMediaActivity;
import com.mogo.module.tanlu.video.SimpleCoverVideoPlayer;
import com.mogo.module.tanlu.view.AutoZoomInImageView;
import com.mogo.service.MogoServicePaths;
@@ -195,9 +196,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
// @Override
// public void onClick(View view) {
// Logger.d(TAG, "simpleCoverVideoPlayer onClick -------> ");
// gsyVideoOptionBuilder.setUrl(mVideoUrl).setCacheWithPlay(false).setPlayTag(TAG)
// .build(simpleCoverVideoPlayer);
//// simpleCoverVideoPlayer.getStartButton().performClick();
// FullMediaActivity.Companion.launch(getActivity(), mVideoUrl, mImageUrl, "东城区环球贸易中心", 1300000300);
// }
// });
}

View File

@@ -125,6 +125,21 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
override fun onClick(v: View?) {
super.onClick(v)
v?.let {
when (v) {
start -> {
Log.d("liyz", "start --------->")
}
else -> {
}
}
}
}
override fun onBufferingUpdate(percent: Int) {
super.onBufferingUpdate(percent)
Log.d("liyz", "onBufferingUpdate percent = " + percent)
}