[6.0.0] code opt and update sdk of aicloud , map , plus kotlin union

This commit is contained in:
zhongchao
2023-08-25 13:30:43 +08:00
parent e32f2c5f0a
commit 22ec53bb2f
73 changed files with 91 additions and 159 deletions

View File

@@ -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)
}

View File

@@ -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

View File

@@ -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) {