[Update]更新zego直播相关sdk的版本

This commit is contained in:
chenfufeng
2021-11-26 16:49:52 +08:00
parent 9e4a8a9606
commit 8708327e51
5 changed files with 32 additions and 15 deletions

View File

@@ -67,7 +67,8 @@ class CameraListView : FrameLayout {
private val liveStreamManager by lazy {
LiveStreamManagerImpl.getInstance(
context.applicationContext as Application?,
MoGoAiCloudClientConfig.getInstance().sn
MoGoAiCloudClientConfig.getInstance().sn,
false
)
}
private var liveSn: String? = ""
@@ -336,11 +337,16 @@ class CameraListView : FrameLayout {
try {
GSYVideoManager.releaseAllVideos()
} catch (e: Exception) {
Logger.e(TAG, "stopLive exception msg is:${e.message},cause is:${e.cause}")
e.printStackTrace()
}
}
else -> {
if (!liveSn.isNullOrEmpty()) MoGoAiCloudTrafficLive.stopCarLive(liveSn)
if (!liveSn.isNullOrEmpty()) {
MoGoAiCloudTrafficLive.stopCarLive(liveSn)
} else {
Logger.d(TAG, "StopCarLive sn is null or empty!")
}
}
}
}