[6.0.0] code opt and update sdk of aicloud , map , plus kotlin union
This commit is contained in:
@@ -112,7 +112,7 @@ class NoticeSimpleSmallVideoPlayer : StandardGSYVideoPlayer {
|
||||
super.hideAllWidget()
|
||||
mBottomContainer?.visibility = View.VISIBLE
|
||||
mProgressBar?.visibility = View.VISIBLE
|
||||
start?.visibility = View.VISIBLE
|
||||
start.visibility = View.VISIBLE
|
||||
start.setImageResource(R.drawable.notice_video_pause)
|
||||
}
|
||||
|
||||
|
||||
@@ -89,11 +89,11 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
|
||||
mBottomContainer?.visibility = View.VISIBLE
|
||||
mProgressBar?.visibility = View.VISIBLE
|
||||
start?.visibility = View.VISIBLE
|
||||
fullscreen?.visibility = View.GONE
|
||||
start.visibility = View.VISIBLE
|
||||
fullscreen.visibility = View.GONE
|
||||
//时间显示
|
||||
currentTimeTextView?.text = TimeTransformUtils.stringForTime(currentTime)
|
||||
totalTimeTextView?.text = TimeTransformUtils.stringForTime(totalTime)
|
||||
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime)
|
||||
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime)
|
||||
|
||||
if (progress != 0) {
|
||||
mProgressBar?.progress = progress
|
||||
@@ -112,7 +112,7 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
super.hideAllWidget()
|
||||
mBottomContainer?.visibility = View.VISIBLE
|
||||
mProgressBar?.visibility = View.VISIBLE
|
||||
start?.visibility = View.VISIBLE
|
||||
start.visibility = View.VISIBLE
|
||||
start.setImageResource(R.drawable.notice_video_pause)
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
override fun onCompletion() {
|
||||
mBottomContainer?.visibility = View.VISIBLE
|
||||
mProgressBar?.visibility = View.VISIBLE
|
||||
start?.visibility = View.VISIBLE
|
||||
start.visibility = View.VISIBLE
|
||||
start.setImageResource(R.drawable.notice_video_after_pause)
|
||||
|
||||
isPostBufferUpdate = false
|
||||
|
||||
@@ -152,9 +152,6 @@ class SimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
|
||||
private var runnable = object :Runnable {
|
||||
override fun run() {
|
||||
if(this@SimpleVideoPlayer==null){
|
||||
return
|
||||
}
|
||||
updateTimer++
|
||||
postDelayed(this, 1000)
|
||||
if (updateTimer >= 3) {
|
||||
|
||||
Reference in New Issue
Block a user