[Fix]解决根据ip查询直播url网络请求失败时交互有误的问题

Signed-off-by: chenfufeng <chenfufeng@zhidaoauto.com>
This commit is contained in:
chenfufeng
2021-11-12 16:47:16 +08:00
parent ae01c68c07
commit ecbfc7fb1a
5 changed files with 18 additions and 0 deletions

View File

@@ -469,6 +469,10 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
cameraListView?.startRoadCameraLive(flvUrl)
}
override fun showNoSignView() {
cameraListView?.showNoSignal()
}
private fun showCameraList(cameraList: List<CameraEntity>?) {
context?.let {
if (cameraViewFloat == null) {

View File

@@ -201,6 +201,13 @@ class CameraListView : FrameLayout {
gsyVideoPlay(flvUrl)
}
fun showNoSignal() {
showNoSignalView()
if (!valueAnimator.isStarted && !valueAnimator.isRunning) {
valueAnimator.start()
}
}
private fun handleSnLiveStatus(status: Int) {
when (status) {
0 -> {// 正在直播