[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)
|
cameraListView?.startRoadCameraLive(flvUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun showNoSignView() {
|
||||||
|
cameraListView?.showNoSignal()
|
||||||
|
}
|
||||||
|
|
||||||
private fun showCameraList(cameraList: List<CameraEntity>?) {
|
private fun showCameraList(cameraList: List<CameraEntity>?) {
|
||||||
context?.let {
|
context?.let {
|
||||||
if (cameraViewFloat == null) {
|
if (cameraViewFloat == null) {
|
||||||
|
|||||||
@@ -201,6 +201,13 @@ class CameraListView : FrameLayout {
|
|||||||
gsyVideoPlay(flvUrl)
|
gsyVideoPlay(flvUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun showNoSignal() {
|
||||||
|
showNoSignalView()
|
||||||
|
if (!valueAnimator.isStarted && !valueAnimator.isRunning) {
|
||||||
|
valueAnimator.start()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun handleSnLiveStatus(status: Int) {
|
private fun handleSnLiveStatus(status: Int) {
|
||||||
when (status) {
|
when (status) {
|
||||||
0 -> {// 正在直播
|
0 -> {// 正在直播
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ class CronTaskManager {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
Logger.e(TAG, "openCameraStream&message is:${it.message}, cause is:${it.cause}")
|
Logger.e(TAG, "openCameraStream&message is:${it.message}, cause is:${it.cause}")
|
||||||
|
CallerHmiManager.showNoSignalView()
|
||||||
it.printStackTrace()
|
it.printStackTrace()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,4 +138,6 @@ interface IMoGoWaringProvider : IMoGoFunctionProvider {
|
|||||||
fun vipIdentification(visible: Boolean)
|
fun vipIdentification(visible: Boolean)
|
||||||
|
|
||||||
fun startRoadCameraLive(flvUrl: String)
|
fun startRoadCameraLive(flvUrl: String)
|
||||||
|
|
||||||
|
fun showNoSignView()
|
||||||
}
|
}
|
||||||
@@ -185,4 +185,8 @@ object CallerHmiManager : CallerBase() {
|
|||||||
fun startRoadCameraLive(flvUrl: String) {
|
fun startRoadCameraLive(flvUrl: String) {
|
||||||
waringProviderApi.startRoadCameraLive(flvUrl)
|
waringProviderApi.startRoadCameraLive(flvUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun showNoSignalView() {
|
||||||
|
waringProviderApi.showNoSignView()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user