[Fix]解决根据ip查询直播url网络请求失败时交互有误的问题
Signed-off-by: chenfufeng <chenfufeng@zhidaoauto.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 -> {// 正在直播
|
||||
|
||||
Reference in New Issue
Block a user