فهرست منبع

暂时去掉视频播放

詹子聪 6 سال پیش
والد
کامیت
ad89984ec3
1فایلهای تغییر یافته به همراه45 افزوده شده و 48 حذف شده
  1. 45 48
      app/src/main/java/com/miekir/eden/widget/VideoPlayer.java

+ 45 - 48
app/src/main/java/com/miekir/eden/widget/VideoPlayer.java

@@ -1,50 +1,47 @@
 package com.miekir.eden.widget;
 
-import android.content.Context;
-import android.util.AttributeSet;
-
-import cn.jzvd.JzvdStd;
-
-/**
- * Copyright (C), 2019-2020, Miekir
- *
- * @author Miekir
- * @date 2020/8/25 14:29
- * Description: 视频播放
- */
-public class VideoPlayer extends JzvdStd {
-
-    public VideoPlayer(Context context) {
-        super(context);
-    }
-
-    public VideoPlayer(Context context, AttributeSet attrs) {
-        super(context, attrs);
-    }
-
-    @Override
-    public void onStateAutoComplete() {
-        super.onStateAutoComplete();
-        if (mVideoPlayListener != null) {
-            mVideoPlayListener.onPlayComplete();
-        }
-    }
-
-    @Override
-    protected void clickBack() {
-        super.clickBack();
-        if (mVideoPlayListener != null) {
-            mVideoPlayListener.onPlayComplete();
-        }
-    }
-
-    private static VideoPlayListener mVideoPlayListener;
-
-    public static void setVideoPlayListener(VideoPlayListener videoPlayListener) {
-        mVideoPlayListener = videoPlayListener;
-    }
-
-    public interface VideoPlayListener {
-        void onPlayComplete();
-    }
-}
+//import cn.jzvd.JzvdStd;
+//
+///**
+// * Copyright (C), 2019-2020, Miekir
+// *
+// * @author Miekir
+// * @date 2020/8/25 14:29
+// * Description: 视频播放
+// */
+//public class VideoPlayer extends JzvdStd {
+//
+//    public VideoPlayer(Context context) {
+//        super(context);
+//    }
+//
+//    public VideoPlayer(Context context, AttributeSet attrs) {
+//        super(context, attrs);
+//    }
+//
+//    @Override
+//    public void onStateAutoComplete() {
+//        super.onStateAutoComplete();
+//        if (mVideoPlayListener != null) {
+//            mVideoPlayListener.onPlayComplete();
+//        }
+//    }
+//
+//    @Override
+//    protected void clickBack() {
+//        super.clickBack();
+//        if (mVideoPlayListener != null) {
+//            mVideoPlayListener.onPlayComplete();
+//        }
+//    }
+//
+//    private static VideoPlayListener mVideoPlayListener;
+//
+//    public static void setVideoPlayListener(VideoPlayListener videoPlayListener) {
+//        mVideoPlayListener = videoPlayListener;
+//    }
+//
+//    public interface VideoPlayListener {
+//        void onPlayComplete();
+//    }
+//}