[6.10.0][Feat]更新GsyVideo版本到10.0.0

This commit is contained in:
chenfufeng
2025-02-18 17:27:27 +08:00
parent 99348fdcc0
commit 6cf9d2ce4e
28 changed files with 105 additions and 71 deletions

View File

@@ -179,6 +179,8 @@ class DriverM1Presenter(view: DriverM1Fragment?) :
OPERATION_ROAD_SIDE_TYPE
)
}
else -> {}
}
}

View File

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

View File

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

View File

@@ -37,6 +37,8 @@ class CommonFeedbackDialog : BaseFloatDialog, LifecycleObserver {
Status.fail -> {
ivFeedbackStatus.setImageResource(R.drawable.common_feedback_fail)
}
else -> {}
}
RxUtils.createSubscribe(1_000) {
hide()

View File

@@ -175,6 +175,8 @@ class SeekBarView : ConstraintLayout, VisualViewModel.IVisualCallback {
duration = 100
}.start()
}
else -> {}
}
}

View File

@@ -88,6 +88,8 @@ class VisualViewModel : ViewModel(),
Visualangle.UnChange -> {
viewCallback?.setUnableChange()
}
else -> {}
}
}

View File

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

View File

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

View File

@@ -370,6 +370,8 @@ object SweeperCloudTaskUtils {
builder.rightStr = ""
VoiceNotice.showNotice("云端异常结束任务")
}
else -> {}
}
builder.countDownTime = 10
builder.listener = listener

View File

@@ -194,6 +194,8 @@ class ItineraryCurrentView: ConstraintLayout, ItineraryCurrentModel.SwtichLineVi
taskAndOrderUiState.isStart
)
}
else -> {}
}
}
}

View File

@@ -57,6 +57,8 @@ class BottomBar @JvmOverloads constructor(
SelectView.VIDEO -> {
actv_video.setBagVisable(visibility)
}
else -> {}
}
}

View File

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

View File

@@ -172,6 +172,12 @@ repositories {
}
dependencies {
configurations {
all {
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
}
}
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation rootProject.ext.dependencies.androidxappcompat
implementation rootProject.ext.dependencies.arouter

View File

@@ -17,6 +17,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://artifact.bytedance.com/repository/Volcengine/" }
maven { url "https://artifact.bytedance.com/repository/byteX/" }
maven { url 'https://jitpack.io' }
gradlePluginPortal()
// mavenCentral()
google()
@@ -62,7 +63,7 @@ allprojects {
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://plugins.gradle.org/m2/' }
// mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url "https://artifact.bytedance.com/repository/Volcengine/"
}

View File

@@ -81,9 +81,9 @@ ext {
kotlinstdlib : "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}",
//探路使用的直播组件
videoarmv7 : "com.shuyu:gsyVideoPlayer-armv7a:7.1.2",
videoarm64 : "com.shuyu:gsyVideoPlayer-arm64:7.1.2",
videojava : "com.shuyu:gsyVideoPlayer-java:7.1.2",
videoarmv7 : "com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-armv7a:10.0.0",
videoarm64 : "com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-arm64:10.0.0",
videojava : "com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer-java:10.0.0",
eventbus : "org.greenrobot:eventbus:3.3.1",
videoprocessor : "com.zhidao.video:video-processor:1.0.2.1",
livesdk : "com.tencent.liteavsdk:LiteAVSDK_Smart:7.4.9211",
@@ -103,15 +103,15 @@ ext {
litezxing : "com.google.zxing:litezxing:1.0.29.8",
// android - room
androidxroomruntime : "androidx.room:room-runtime:2.4.2",
androidxroomcompiler : "androidx.room:room-compiler:2.4.2",
androidxroomktx : "androidx.room:room-ktx:2.4.2",
androidxroomruntime : "androidx.room:room-runtime:2.6.1",
androidxroomcompiler : "androidx.room:room-compiler:2.6.1",
androidxroomktx : "androidx.room:room-ktx:2.6.1",
// androidx-lifecycle-process
androidxlifecycleprocess : "androidx.lifecycle:lifecycle-process:2.4.0",
androidxlifecycleservice : "androidx.lifecycle:lifecycle-service:2.4.0",
// rxjava2 with room
roomRxjava : 'androidx.room:room-rxjava2:2.4.2',
roomRxjava : 'androidx.room:room-rxjava2:2.6.1',
circleimageview : "de.hdodenhof:circleimageview:3.0.1",
//plugin

View File

@@ -243,6 +243,8 @@ class MoGoAdasMsgConnectStatusListenerImpl :
)
resetArgs()
}
else -> {}
}
AppConfigInfo.connectStatusDescribe = connectStatusDescribe
CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo().ipcConnStatus = status

View File

@@ -2,8 +2,8 @@ package com.zhjt.mogo_core_function_devatools.upgrade.provider.db.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.IGNORE
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.OnConflictStrategy.Companion.IGNORE
import androidx.room.OnConflictStrategy.Companion.REPLACE
import androidx.room.Query
import androidx.room.Transaction
import com.zhjt.mogo_core_function_devatools.upgrade.provider.db.vo.*

View File

@@ -1,7 +1,7 @@
package com.zhjt.mogo_core_function_devatools.upgrade.provider.db.vo
import androidx.room.*
import androidx.room.ForeignKey.CASCADE
import androidx.room.ForeignKey.Companion.CASCADE
import com.mogo.eagle.core.utilcode.util.*
@Entity(tableName = "records")

View File

@@ -232,6 +232,10 @@ class NoticeCheckDialog(context: Context) : BaseFloatDialog(context), LifecycleO
complete(firstBitmap, path)
}
override fun onComplete(url: String?, vararg objects: Any?) {
}
override fun onClickResume(url: String, vararg objects: Any) {
thumbnailImageView!!.visibility = View.GONE
playImageView!!.visibility = View.GONE

View File

@@ -276,6 +276,10 @@ class NoticeTrafficDialog : BaseFloatDialog, LifecycleObserver {
complete(firstBitmap)
}
override fun onComplete(url: String?, vararg objects: Any?) {
}
override fun onClickResume(url: String, vararg objects: Any) {
thumbnailImage!!.visibility = View.GONE
playImageView!!.visibility = View.GONE

View File

@@ -197,6 +197,8 @@ class StatusSummaryView @JvmOverloads constructor(context: Context, attrs: Attri
AdasConstants.IpcConnectionStatus.SERVER_DISCONNECTED -> {
pair = Pair("域控主动断开连接", true)
}
else -> {}
}
UiThreadHandler.post {
if (data.size < 5 || pair == null) return@post

View File

@@ -231,6 +231,8 @@ class ColdStartView @JvmOverloads constructor(
AdasConstants.IpcConnectionStatus.SERVER_DISCONNECTED ->{
showIPCConnectFailView("域控主动断开连接,建议重启车辆并上报问题")
}
else -> {}
}
}
}

View File

@@ -168,6 +168,8 @@ class ConnectStatusView @JvmOverloads constructor(
.setForegroundColor(Color.RED)
adasSpan.create()
}
else -> {}
}
}
}

View File

@@ -80,10 +80,10 @@ class NoticeSimpleSmallVideoPlayer : StandardGSYVideoPlayer {
}
override fun setProgressAndTime(
progress: Int,
secProgress: Int,
currentTime: Int,
totalTime: Int,
progress: Long,
secProgress: Long,
currentTime: Long,
totalTime: Long,
forceChange: Boolean
) {
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
@@ -92,11 +92,11 @@ class NoticeSimpleSmallVideoPlayer : StandardGSYVideoPlayer {
start.visibility = View.VISIBLE
fullscreen.visibility = View.GONE
//时间显示
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime)
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime)
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime.toInt())
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime.toInt())
if (progress != 0) {
mProgressBar?.progress = progress
if (progress != 0L) {
mProgressBar?.progress = progress.toInt()
}
}

View File

@@ -81,10 +81,10 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
}
override fun setProgressAndTime(
progress: Int,
secProgress: Int,
currentTime: Int,
totalTime: Int,
progress: Long,
secProgress: Long,
currentTime: Long,
totalTime: Long,
forceChange: Boolean
) {
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
@@ -93,11 +93,11 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
start.visibility = View.VISIBLE
fullscreen.visibility = View.GONE
//时间显示
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime)
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime)
currentTimeTextView.text = TimeTransformUtils.stringForTime(currentTime.toInt())
totalTimeTextView.text = TimeTransformUtils.stringForTime(totalTime.toInt())
if (progress != 0) {
mProgressBar?.progress = progress
if (progress != 0L) {
mProgressBar?.progress = progress.toInt()
}
}

View File

@@ -3,6 +3,7 @@ package com.mogo.eagle.core.widget.media.video
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.Surface
import android.view.View
import android.widget.ImageView
@@ -75,15 +76,15 @@ open class SimpleVideoPlayer : StandardGSYVideoPlayer {
}
override fun setProgressAndTime(
progress: Int,
secProgress: Int,
currentTime: Int,
totalTime: Int,
progress: Long,
secProgress: Long,
currentTime: Long,
totalTime: Long,
forceChange: Boolean
) {
super.setProgressAndTime(progress, secProgress, currentTime, totalTime, forceChange)
if (progress != 0) {
mProgressBar?.progress = progress
if (progress != 0L) {
mProgressBar?.progress = progress.toInt()
}
}
@@ -220,18 +221,18 @@ open class SimpleVideoPlayer : StandardGSYVideoPlayer {
}
}
override fun touchDoubleUp() {
override fun touchDoubleUp(e: MotionEvent?) {
if (enableDoubleClick) {
super.touchDoubleUp()
super.touchDoubleUp(e)
}
}
override fun showProgressDialog(
deltaX: Float,
seekTime: String?,
seekTimePosition: Int,
seekTimePosition: Long,
totalTime: String?,
totalTimeDuration: Int
totalTimeDuration: Long
) {
if (enableshowProgressDialog) {
super.showProgressDialog(

View File

@@ -1,6 +1,6 @@
ext {
gradle_version = '3.5.4'
kotlin_plugin_version = '1.5.30'
kotlin_plugin_version = '1.7.20'
plugin_version = '10.0.10_mogo'
service_chain_version = '5.3.14'
lancetx_version = '20.10.2'

View File

@@ -341,7 +341,7 @@ object MapDataWrapper : IMogoData {
MapDataApi.getBusStation(routeList, object : IResult<RoutePath> {
override fun result(code: Int, result: RoutePath?) {
result?.steps?.forEach {
it?.busStations.forEach {
it?.busStations?.forEach {
val busStation = BusStation(
it.busStationPoints,
it.id.toLong(),