opt
This commit is contained in:
@@ -54,11 +54,16 @@ class NoticeCheckDialog(context: Context) : BaseFloatDialog(context) {
|
||||
}
|
||||
|
||||
playImageView!!.setOnClickListener {
|
||||
if (pushVideo!!.currentState == GSYVideoView.CURRENT_STATE_PAUSE) { /*播放中*/
|
||||
resume()
|
||||
} else {
|
||||
pause()
|
||||
}
|
||||
// if (pushVideo!!.currentState == GSYVideoView.CURRENT_STATE_PAUSE) { /*播放中*/
|
||||
// resume()
|
||||
// } else {
|
||||
// pause()
|
||||
// }
|
||||
|
||||
playVideo(mVideoUrl)
|
||||
|
||||
playImageView!!.visibility = View.GONE
|
||||
thumbnailImageView!!.visibility = View.GONE
|
||||
}
|
||||
|
||||
}
|
||||
@@ -142,10 +147,10 @@ class NoticeCheckDialog(context: Context) : BaseFloatDialog(context) {
|
||||
* 播放结束后
|
||||
*/
|
||||
private fun complete(firstbitmap: Bitmap, path: String) {
|
||||
playImageView!!.visibility = View.VISIBLE
|
||||
playImageView!!.setImageResource(R.drawable.notice_video_play)
|
||||
thumbnailImageView!!.visibility = View.VISIBLE
|
||||
thumbnailImageView!!.setImageBitmap(firstbitmap)
|
||||
playImageView!!.setImageResource(R.drawable.notice_video_play)
|
||||
playImageView!!.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
private fun startVideoCallBack(path: String) {
|
||||
|
||||
@@ -97,20 +97,20 @@
|
||||
<!--播放按钮-->
|
||||
<ImageView
|
||||
android:id="@+id/notice_video_play"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
app:layout_constraintBottom_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="parent" />
|
||||
android:layout_width="100px"
|
||||
android:layout_height="100px"
|
||||
android:src="@drawable/video_play"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!--加载失败默认图-->
|
||||
<ImageView
|
||||
android:id="@+id/load_failed_image"
|
||||
android:layout_width="@dimen/module_push_dialog_check_acc_image_width"
|
||||
android:layout_height="@dimen/module_push_dialog_check_acc_image__height"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_marginLeft="@dimen/dp_150"
|
||||
android:layout_marginTop="@dimen/dp_52"
|
||||
android:layout_marginRight="@dimen/dp_150"
|
||||
|
||||
Reference in New Issue
Block a user