diff --git a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt index d455a722f..fe4f0c217 100644 --- a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt +++ b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt @@ -141,7 +141,12 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface App.data.accessInfo!!.productId, presenter.getDeviceName(), "") if (started != 0) { launch(Dispatchers.Main) { - var errInfo = getString(R.string.error_with_code, id, started.toString()) + var errInfo = "" + if (started.toString() == "-1007") { + errInfo = getString(R.string.xp2p_err_version) + } else { + errInfo = getString(R.string.error_with_code, id, started.toString()) + } Toast.makeText(this@VideoPreviewActivity, errInfo, Toast.LENGTH_SHORT).show() } return@Runnable diff --git a/sdkdemo/src/main/res/values/strings.xml b/sdkdemo/src/main/res/values/strings.xml index 5cc334dbd..5f0fcb227 100644 --- a/sdkdemo/src/main/res/values/strings.xml +++ b/sdkdemo/src/main/res/values/strings.xml @@ -97,6 +97,7 @@ %s 通道断开,正在重连 %s 通道建立成功 %s 连接错误码 %s,通道断开 + APP SDK 版本与设备端 SDK 版本号不匹配,版本号需前两位保持一致 执行信令 %s 不成功 加载中