opt
This commit is contained in:
@@ -13,11 +13,9 @@ import com.mogo.eagle.core.widget.media.video.NoticeSimpleVideoPlayer
|
||||
import com.mogo.module.common.dialog.BaseFloatDialog
|
||||
import com.mogo.utils.BitmapHelper
|
||||
import com.mogo.utils.glide.GlideApp
|
||||
import com.mogo.utils.logger.Logger
|
||||
import com.shuyu.gsyvideoplayer.GSYVideoManager
|
||||
import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder
|
||||
import com.shuyu.gsyvideoplayer.listener.VideoAllCallBack
|
||||
import com.shuyu.gsyvideoplayer.video.base.GSYVideoView
|
||||
|
||||
|
||||
/**
|
||||
@@ -67,6 +65,12 @@ class NoticeCheckDialog(context: Context) : BaseFloatDialog(context) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override fun dismiss() {
|
||||
super.dismiss()
|
||||
stopLive()
|
||||
}
|
||||
|
||||
/**
|
||||
* 展示详情页面
|
||||
*/
|
||||
@@ -200,4 +204,5 @@ class NoticeCheckDialog(context: Context) : BaseFloatDialog(context) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -20,7 +20,6 @@ import com.mogo.eagle.core.function.api.notice.NoticeNetCallBack;
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager;
|
||||
import com.mogo.eagle.core.function.call.notice.CallerNoticeManager;
|
||||
import com.mogo.eagle.core.function.hmi.R;
|
||||
import com.mogo.eagle.core.widget.media.video.NoticeSimpleSmallVideoPlayer;
|
||||
import com.mogo.eagle.core.widget.media.video.NoticeSimpleVideoPlayer;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.dialog.BaseFloatDialog;
|
||||
|
||||
@@ -63,13 +63,12 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
|
||||
override fun getLayoutId(): Int {
|
||||
Log.d("liyz", "NoticeSimpleVideoPlayer --- getLayoutId type = " + SharedPrefs.getInstance(context).getInt("videoType", 0))
|
||||
if (SharedPrefs.getInstance(context).getInt("videoType", 0) == 1) { //大播放器
|
||||
return R.layout.item_notice_video
|
||||
}
|
||||
// if (SharedPrefs.getInstance(context).getInt("videoType", 0) == 1) { //大播放器
|
||||
// return R.layout.item_notice_video
|
||||
// }
|
||||
// return R.layout.item_notice_video_small
|
||||
|
||||
return R.layout.item_notice_video_small
|
||||
|
||||
// return R.layout.item_notice_video
|
||||
return R.layout.item_notice_video
|
||||
}
|
||||
|
||||
override fun getGSYVideoManager(): GSYVideoViewBridge {
|
||||
|
||||
Reference in New Issue
Block a user