[Fix]关闭车端摄像头视频流后再打开播放不了的问题
原因:重置状态得在关闭直播后 Signed-off-by: chenfufeng <chenfufeng@zhidaoauto.com>
This commit is contained in:
@@ -111,9 +111,6 @@ class CameraListView : FrameLayout {
|
||||
}
|
||||
}
|
||||
ivCloseIcon.setOnClickListener {
|
||||
isPlaySuccess = false
|
||||
isCarLive = false
|
||||
isFirstPage = true
|
||||
when {
|
||||
isCloseStatus -> clickListener?.onClose(it)// 直接退出
|
||||
else -> {// 返回摄像头列表
|
||||
@@ -130,6 +127,9 @@ class CameraListView : FrameLayout {
|
||||
}
|
||||
}
|
||||
clickListener?.onShowLive(false)
|
||||
isCarLive = false
|
||||
isPlaySuccess = false
|
||||
isFirstPage = true
|
||||
}
|
||||
GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL)
|
||||
svpPlayer.setPlayListener(object : SimpleVideoPlayer.PlayListener {
|
||||
@@ -283,6 +283,7 @@ class CameraListView : FrameLayout {
|
||||
}
|
||||
|
||||
private fun stopLive() {
|
||||
Logger.d(TAG, "stopLive")
|
||||
when {
|
||||
!isCarLive -> {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user