[6.10.0][Feat]更新GsyVideo版本到10.0.0
This commit is contained in:
@@ -179,6 +179,8 @@ class DriverM1Presenter(view: DriverM1Fragment?) :
|
||||
OPERATION_ROAD_SIDE_TYPE
|
||||
)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -145,6 +145,8 @@ class LockAndUnlockView : ConstraintLayout, LockManager.LockStatusCallback {
|
||||
LockManager.LockStatus.UNLOCK -> {
|
||||
aciv_screen_lock.setImageResource(R.drawable.charter_p_unlock)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
aciv_screen_lock_bg?.setImageResource(R.drawable.charter_p_normal)
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import android.util.TypedValue
|
||||
import android.view.Gravity
|
||||
import android.view.MotionEvent
|
||||
import android.view.Surface
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -166,7 +167,7 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
override fun touchDoubleUp() {
|
||||
override fun touchDoubleUp(e: MotionEvent?) {
|
||||
|
||||
}
|
||||
|
||||
@@ -185,24 +186,24 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
|
||||
}
|
||||
|
||||
override fun setProgressAndTime(
|
||||
progress: Int,
|
||||
secProgress: Int,
|
||||
currentTime: Int,
|
||||
totalTime: Int,
|
||||
forceChange: Boolean
|
||||
progress: Long,
|
||||
secProgress: Long,
|
||||
currentTime: Long,
|
||||
totalTime: Long,
|
||||
forceChange: Boolean
|
||||
) {
|
||||
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
|
||||
CallerLogger.d(TAG,"setProgressAndTime¥${progress}-${secProgress}-${currentTime}")
|
||||
//时间显示
|
||||
currentTimeTextView.text = TimeTransformUtils.stringForTimeWithHours(currentTime)
|
||||
totalTimeTextView.text = TimeTransformUtils.stringForTimeWithHours(totalTime)
|
||||
currentTimeTextView.text = TimeTransformUtils.stringForTimeWithHours(currentTime.toInt())
|
||||
totalTimeTextView.text = TimeTransformUtils.stringForTimeWithHours(totalTime.toInt())
|
||||
if(currentTime>=totalTime-3000){//
|
||||
this.currentTime = -1
|
||||
}else{
|
||||
this.currentTime = currentTime
|
||||
this.currentTime = currentTime.toInt()
|
||||
}
|
||||
if (progress != 0) {
|
||||
mProgressBar?.progress = progress
|
||||
if (progress != 0L) {
|
||||
mProgressBar?.progress = progress.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ class CommonFeedbackDialog : BaseFloatDialog, LifecycleObserver {
|
||||
Status.fail -> {
|
||||
ivFeedbackStatus.setImageResource(R.drawable.common_feedback_fail)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
RxUtils.createSubscribe(1_000) {
|
||||
hide()
|
||||
|
||||
@@ -175,6 +175,8 @@ class SeekBarView : ConstraintLayout, VisualViewModel.IVisualCallback {
|
||||
duration = 100
|
||||
}.start()
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -88,6 +88,8 @@ class VisualViewModel : ViewModel(),
|
||||
Visualangle.UnChange -> {
|
||||
viewCallback?.setUnableChange()
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,10 +26,6 @@ import com.mogo.och.offline.repository.db.dao.TaskSiteDataDao
|
||||
@Database(entities = [ContrailDataBean::class, LineDataBean::class, SiteDataBean::class, TaskSiteDataBean::class, TaskDataBean::class], version = 6)
|
||||
abstract class MyDataBase : RoomDatabase() {
|
||||
|
||||
override fun getOpenHelper(): SupportSQLiteOpenHelper {
|
||||
return super.getOpenHelper()
|
||||
}
|
||||
|
||||
private val dbRepositorys = mutableListOf<IDbRepository>()
|
||||
|
||||
override fun close() {
|
||||
|
||||
@@ -36,10 +36,6 @@ import java.io.File
|
||||
@Database(entities = [ContrailDataBean::class, LineDataBean::class, SiteDataBean::class, TaskDataBean::class, TaskSiteDataBean::class, EventDataBean::class, WriteOffDataBean::class], version = 6)
|
||||
abstract class MyDataBase : RoomDatabase() {
|
||||
|
||||
override fun getOpenHelper(): SupportSQLiteOpenHelper {
|
||||
return super.getOpenHelper()
|
||||
}
|
||||
|
||||
private val dbRepositorys = mutableListOf<IDbRepository>()
|
||||
|
||||
override fun close() {
|
||||
|
||||
@@ -370,6 +370,8 @@ object SweeperCloudTaskUtils {
|
||||
builder.rightStr = ""
|
||||
VoiceNotice.showNotice("云端异常结束任务")
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
builder.countDownTime = 10
|
||||
builder.listener = listener
|
||||
|
||||
@@ -194,6 +194,8 @@ class ItineraryCurrentView: ConstraintLayout, ItineraryCurrentModel.SwtichLineVi
|
||||
taskAndOrderUiState.isStart
|
||||
)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ class BottomBar @JvmOverloads constructor(
|
||||
SelectView.VIDEO -> {
|
||||
actv_video.setBagVisable(visibility)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import android.util.TypedValue
|
||||
import android.view.Gravity
|
||||
import android.view.MotionEvent
|
||||
import android.view.Surface
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -168,7 +169,7 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
override fun touchDoubleUp() {
|
||||
override fun touchDoubleUp(e: MotionEvent?) {
|
||||
|
||||
}
|
||||
|
||||
@@ -215,23 +216,23 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
|
||||
}
|
||||
|
||||
override fun setProgressAndTime(
|
||||
progress: Int,
|
||||
secProgress: Int,
|
||||
currentTime: Int,
|
||||
totalTime: Int,
|
||||
forceChange: Boolean
|
||||
progress: Long,
|
||||
secProgress: Long,
|
||||
currentTime: Long,
|
||||
totalTime: Long,
|
||||
forceChange: Boolean
|
||||
) {
|
||||
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
|
||||
//时间显示
|
||||
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime)
|
||||
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime)
|
||||
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime.toInt())
|
||||
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime.toInt())
|
||||
if(currentTime>=totalTime-3000){//
|
||||
this.currentTime = -1
|
||||
}else{
|
||||
this.currentTime = currentTime
|
||||
this.currentTime = currentTime.toInt()
|
||||
}
|
||||
if (progress != 0) {
|
||||
mProgressBar?.progress = progress
|
||||
if (progress != 0L) {
|
||||
mProgressBar?.progress = progress.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user