Merge branch 'lk' into dev
This commit is contained in:
@@ -64,7 +64,7 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
|
||||
//加载图片
|
||||
val requestOptions = RequestOptions()
|
||||
// .placeholder(R.drawable.tanlu_normal_image)
|
||||
.error(R.drawable.video_loading_img)
|
||||
.error(R.drawable.v2x_event_video_refresh)
|
||||
Glide.with(mContext).asBitmap()
|
||||
.load(url)
|
||||
.apply(requestOptions)
|
||||
@@ -75,16 +75,22 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
|
||||
/*
|
||||
* 默认双击暂停
|
||||
* */
|
||||
override fun onClickUiToggle(){
|
||||
override fun onClickUiToggle() {
|
||||
super.touchDoubleUp()
|
||||
}
|
||||
|
||||
|
||||
override fun updateStartImage() {
|
||||
when (mCurrentState) {
|
||||
GSYVideoView.CURRENT_STATE_PLAYING -> start.setImageResource(R.drawable.v2x_video_pause)
|
||||
// GSYVideoView.CURRENT_STATE_ERROR -> start.setImageResource(R.drawable.live_error)
|
||||
else -> start.setImageResource(R.drawable.v2x_icon_event_play)
|
||||
// GSYVideoView.CURRENT_STATE_PLAYING -> start.setImageResource(R.drawable.v2x_video_pause)
|
||||
GSYVideoView.CURRENT_STATE_ERROR -> start.setImageResource(R.drawable.v2x_event_video_refresh)
|
||||
else -> start.setImageResource(R.drawable.v2x_icon_event_play)
|
||||
}
|
||||
|
||||
when (mCurrentState) {
|
||||
GSYVideoView.CURRENT_STATE_PAUSE -> start.setImageResource(R.drawable.v2x_video_pause)
|
||||
GSYVideoView.CURRENT_STATE_PAUSE -> start.visibility = View.VISIBLE
|
||||
else -> start.visibility = View.INVISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
@@ -28,7 +28,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="centerCrop" />
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/v2x_event_video_refresh"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -75,7 +76,7 @@
|
||||
android:layout_height="@dimen/dp_56"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:indeterminateDrawable="@drawable/video_loading_bg"
|
||||
android:indeterminateDrawable="@drawable/video_loading_img"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
Reference in New Issue
Block a user