[Update]升级数据库并展示摄像头信息
This commit is contained in:
@@ -87,6 +87,7 @@ class RoadVideoDialog(context: Context) : BaseFloatDialog(context), LifecycleObs
|
||||
|
||||
private fun playVideo(ip: String) {
|
||||
roadVideoPB.visibility = View.VISIBLE
|
||||
tvCameraDesc.visibility = View.GONE
|
||||
CallerMonitorManager.openCameraStream(ip, { flvUrl ->
|
||||
gsyVideoPlay(flvUrl)
|
||||
}) {
|
||||
@@ -120,8 +121,13 @@ class RoadVideoDialog(context: Context) : BaseFloatDialog(context), LifecycleObs
|
||||
|
||||
}
|
||||
SimpleVideoPlayer.PLAY_EVT_PLAY_BEGIN -> {
|
||||
if (!isShowing) return
|
||||
roadVideoPB.visibility = View.GONE
|
||||
roadVideoPlayer.visibility = View.VISIBLE
|
||||
if (curPlayIndex >= 0 && curPlayIndex < infList.size) {
|
||||
tvCameraDesc.visibility = View.VISIBLE
|
||||
tvCameraDesc.text = infList[curPlayIndex].headingDesc
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
CallerLogger.w("${SceneConstant.M_HMI}$TAG", "播放视频异常,event is:$event")
|
||||
|
||||
Reference in New Issue
Block a user